import { Button } from '@mantine/core'; import { showNotification } from '@mantine/notifications'; import { __ } from '@wordpress/i18n'; import { useOptionsContext } from './Options.context'; export function ResetOptions() { const { resetOptions } = useOptionsContext(); function handleReset() { resetOptions(); showNotification({ title: __('Options reset', 'scotty'), message: __('Options have been reset to default', 'scotty'), withBorder: true, color: 'blue', }); } return ; }