Bookmarks.tsx 780 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import { useIsGuestUser } from '~/stores/context';
  4. import { BookmarkContents } from './Bookmarks/BookmarkContents';
  5. export const Bookmarks = () : JSX.Element => {
  6. const { t } = useTranslation();
  7. const { data: isGuestUser } = useIsGuestUser();
  8. return (
  9. <>
  10. {/* TODO : #139425 Match the space specification method to others */}
  11. {/* ref. https://redmine.weseek.co.jp/issues/139425 */}
  12. <div className="grw-sidebar-content-header p-3">
  13. <h3 className="mb-0">{t('Bookmarks')}</h3>
  14. </div>
  15. {isGuestUser ? (
  16. <h4 className="ps-3">
  17. { t('Not available for guest') }
  18. </h4>
  19. ) : (
  20. <BookmarkContents />
  21. )}
  22. </>
  23. );
  24. };