import { type JSX, useState } from 'react'; import { useTranslation } from 'next-i18next'; import { RecentActivity } from '~/client/components/RecentActivity/RecentActivity'; import { RecentCreated } from '~/client/components/RecentCreated/RecentCreated'; import { useCurrentUser } from '~/states/global'; import { BookmarkFolderTree } from './Bookmarks/BookmarkFolderTree'; import { BOOKMARKS_LIST_ID, RECENT_ACTIVITY_LIST_ID, RECENTLY_CREATED_LIST_ID, } from './UsersHomepageFooter.consts'; import styles from './UsersHomepageFooter.module.scss'; type UsersHomepageFooterProps = { creatorId: string; }; export const UsersHomepageFooter = ( props: UsersHomepageFooterProps, ): JSX.Element => { const { t } = useTranslation(); const { creatorId } = props; const [isExpanded, setIsExpanded] = useState(false); const currentUser = useCurrentUser(); const isOperable = currentUser?._id === creatorId; return (

bookmark {t('user_home_page.bookmarks')}

{/* TODO: In bookmark folders v1, the button to create a new folder does not exist. The button should be included in the bookmark component. */}

recently_created {t('user_home_page.recently_created')}

update {t('user_home_page.recent_activity')}

); };