import React, { FC, useCallback } from 'react'; import styles from './styles.module.scss'; import { Button } from '~/components/input/Button'; import { nodeLockComment } from '~/redux/node/actions'; import { IComment } from '~/redux/types'; interface IProps { id: IComment['id']; onDelete: typeof nodeLockComment; } const CommendDeleted: FC = ({ id, onDelete }) => { const onRestore = useCallback(() => onDelete(id, false), [onDelete]); return (
Комментарий удалён
); }; export { CommendDeleted };