import React, { useState } from 'react'; import { useTranslation } from 'next-i18next'; import { RecentlyCreatedIcon } from '~/components/Icons/RecentlyCreatedIcon'; import { RecentCreated } from '~/components/RecentCreated/RecentCreated'; import styles from '~/components/UsersHomePageFooter.module.scss'; import { useCurrentUser } from '~/stores/context'; import { BookmarkFolderTree } from './Bookmarks/BookmarkFolderTree'; import { CompressIcon } from './Icons/CompressIcon'; import { ExpandIcon } from './Icons/ExpandIcon'; export type UsersHomePageFooterProps = { creatorId: string, } export const UsersHomePageFooter = (props: UsersHomePageFooterProps): JSX.Element => { const { t } = useTranslation(); const { creatorId } = props; const [isExpanded, setIsExpanded] = useState(false); const { data: currentUser } = useCurrentUser(); const isOperable = currentUser?._id === creatorId; return (

{t('footer.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. */}

{t('footer.recently_created')}

); };