UsersHomePageFooter.tsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React from 'react';
  2. import { useTranslation } from 'next-i18next';
  3. import { RecentlyCreatedIcon } from '~/components/Icons/RecentlyCreatedIcon';
  4. import { BookmarkList } from '~/components/PageList/BookmarkList';
  5. import { RecentCreated } from '~/components/RecentCreated/RecentCreated';
  6. import styles from '~/components/UsersHomePageFooter.module.scss';
  7. export type UsersHomePageFooterProps = {
  8. creatorId: string,
  9. }
  10. export const UsersHomePageFooter = (props: UsersHomePageFooterProps): JSX.Element => {
  11. const { t } = useTranslation();
  12. const { creatorId } = props;
  13. return (
  14. <div className={`container-lg user-page-footer py-5 ${styles['user-page-footer']}`}>
  15. <div className="grw-user-page-list-m d-edit-none">
  16. <h2 id="bookmarks-list" className="grw-user-page-header border-bottom pb-2 mb-3">
  17. <i style={{ fontSize: '1.3em' }} className="fa fa-fw fa-bookmark-o"></i>
  18. {t('footer.bookmarks')}
  19. </h2>
  20. <div id="user-bookmark-list" className={`page-list ${styles['page-list']}`}>
  21. <BookmarkList userId={creatorId} />
  22. </div>
  23. </div>
  24. <div className="grw-user-page-list-m mt-5 d-edit-none">
  25. <h2 id="recently-created-list" className="grw-user-page-header border-bottom pb-2 mb-3">
  26. <i id="recent-created-icon" className="mr-1"><RecentlyCreatedIcon /></i>
  27. {t('footer.recently_created')}
  28. </h2>
  29. <div id="user-created-list" className={`page-list ${styles['page-list']}`}>
  30. <RecentCreated userId={creatorId} />
  31. </div>
  32. </div>
  33. </div>
  34. );
  35. };