ActionButtons.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.js';
  17. import NotificationButton from './NotificationButton.js';
  18. import ThemeToggle from './ThemeToggle.js';
  19. import LanguageSelector from './LanguageSelector.js';
  20. import UserArea from './UserArea.js';
  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
  46. theme={theme}
  47. onThemeToggle={onThemeToggle}
  48. t={t}
  49. />
  50. <LanguageSelector
  51. currentLang={currentLang}
  52. onLanguageChange={onLanguageChange}
  53. t={t}
  54. />
  55. <UserArea
  56. userState={userState}
  57. isLoading={isLoading}
  58. isMobile={isMobile}
  59. isSelfUseMode={isSelfUseMode}
  60. logout={logout}
  61. navigate={navigate}
  62. t={t}
  63. />
  64. </div>
  65. );
  66. };
  67. export default ActionButtons;