/** * WordPress dependencies */ import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; interface ConfirmResetShadowDialogProps { text: string; confirmButtonText: string; isOpen: boolean; toggleOpen: () => void; onConfirm: () => void; } function ConfirmResetShadowDialog( { text, confirmButtonText, isOpen, toggleOpen, onConfirm, }: ConfirmResetShadowDialogProps ) { const handleConfirm = async () => { toggleOpen(); onConfirm(); }; const handleCancel = () => { toggleOpen(); }; return ( { text } ); } export default ConfirmResetShadowDialog;