import React from 'react'; import { useTranslation } from 'react-i18next'; import { LabelType } from '~/interfaces/template'; type DropendMenuProps = { todaysPath: string, onClickCreateNewPageButtonHandler: () => Promise onClickCreateTodaysButtonHandler: () => Promise onClickTemplateButtonHandler: (label: LabelType) => Promise } export const DropendMenu = React.memo((props: DropendMenuProps): JSX.Element => { const { todaysPath, onClickCreateNewPageButtonHandler, onClickCreateTodaysButtonHandler, onClickTemplateButtonHandler, } = props; const { t } = useTranslation('commons'); return (

  • {t('create_page_dropdown.todays.desc')}

  • {t('create_page_dropdown.template.desc')}
); }); DropendMenu.displayName = 'DropendMenu';