BaseErrorModal
Import
import { BaseErrorModal } from 'binak-react-components';
Props
Name | Type | Default Value |
---|---|---|
error | string | undefined |
errors | string[] | undefined |
okayButton | string | '' |
title | string | 'An Error Occurred' |
onClose | () => unknown | undefined |
...props | dialog props | BaseModal Props | - |
Example
const [error, setError] = useState('This is an error!');
return (
<BaseErrorModal
error={error}
onClose={() => setError('')}
okayButton="okay"
/>
);