import React, { FC } from 'react'; import toastr from 'toastr'; import { useTranslation } from 'react-i18next'; import { IPageHasId } from '~/interfaces/page'; type PageItemControlProps = { page: Partial, onClickDeleteButton?: (pageId: string)=>void, } const PageItemControl: FC = (props: PageItemControlProps) => { const { page, onClickDeleteButton } = props; const { t } = useTranslation(''); const deleteButtonHandler = () => { if (onClickDeleteButton != null && page._id != null) { onClickDeleteButton(page._id); } }; return ( <>
{/* TODO: if there is the following button in XD add it here */} {/* TODO: add function to the following buttons like using modal or others ref: https://estoc.weseek.co.jp/redmine/issues/79026 */}
); }; export default PageItemControl;