import React from 'react'; import { IUserHasId } from '@growi/core'; import { Link as ScrollLink } from 'react-scroll'; import { DEFAULT_AUTO_SCROLL_OPTS } from '~/client/util/smooth-scroll'; import { RecentlyCreatedIcon } from '~/components/Icons/RecentlyCreatedIcon'; import styles from './ContentLinkButtons.module.scss'; const OFFSET = -120; const BookMarkLinkButton = React.memo(() => { return ( ); }); BookMarkLinkButton.displayName = 'BookMarkLinkButton'; const RecentlyCreatedLinkButton = React.memo(() => { return ( ); }); RecentlyCreatedLinkButton.displayName = 'RecentlyCreatedLinkButton'; export type ContentLinkButtonsProps = { author?: IUserHasId, } export const ContentLinkButtons = (props: ContentLinkButtonsProps): JSX.Element => { const { author } = props; if (author == null || author.status === 4) { return <>; } return (
); };