ActionButtons.jsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Copyright (C) 2025 QuantumNous
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>.
  13. For commercial licensing, please contact support@quantumnous.com
  14. */
  15. import React from 'react';
  16. import NewYearButton from './NewYearButton';
  17. import NotificationButton from './NotificationButton';
  18. import ThemeToggle from './ThemeToggle';
  19. import LanguageSelector from './LanguageSelector';
  20. import UserArea from './UserArea';
  21. const ActionButtons = ({
  22. isNewYear,
  23. unreadCount,
  24. onNoticeOpen,
  25. theme,
  26. onThemeToggle,
  27. currentLang,
  28. onLanguageChange,
  29. userState,
  30. isLoading,
  31. isMobile,
  32. isSelfUseMode,
  33. logout,
  34. navigate,
  35. t,
  36. }) => {
  37. return (
  38. <div className='flex items-center gap-2 md:gap-3'>
  39. <NewYearButton isNewYear={isNewYear} />
  40. <NotificationButton
  41. unreadCount={unreadCount}
  42. onNoticeOpen={onNoticeOpen}
  43. t={t}
  44. />
  45. <ThemeToggle theme={theme} onThemeToggle={onThemeToggle} t={t} />
  46. <LanguageSelector
  47. currentLang={currentLang}
  48. onLanguageChange={onLanguageChange}
  49. t={t}
  50. />
  51. <UserArea
  52. userState={userState}
  53. isLoading={isLoading}
  54. isMobile={isMobile}
  55. isSelfUseMode={isSelfUseMode}
  56. logout={logout}
  57. navigate={navigate}
  58. t={t}
  59. />
  60. </div>
  61. );
  62. };
  63. export default ActionButtons;