import * as React from 'react'; import { _ } from '@joplin/lib/locale'; import { useCallback, useState } from 'react'; interface Props { message: string; onCancel: ()=> void; } const TrashNotificationMessage: React.FC = props => { const [cancelling, setCancelling] = useState(false); const onCancel = useCallback(() => { setCancelling(true); props.onCancel(); }, [props.onCancel]); return <> {props.message} {' '} ; }; export default TrashNotificationMessage;