import { Text } from "preact-i18n";
import Modal from "../../../components/ui/Modal";
interface Props {
onClose: () => void;
error: string;
}
export function ErrorModal({ onClose, error }: Props) {
return (
}
actions={[
{
onClick: onClose,
confirmation: true,
children: ,
},
{
onClick: () => location.reload(),
children: ,
},
]}>
{error}
);
}