import { Text } from "preact-i18n"; import { Modal } from "@revoltchat/ui"; import { noopTrue } from "../../../lib/js"; import { ModalProps } from "../types"; export default function Error({ error, ...props }: ModalProps<"error">) { return ( } actions={[ { onClick: noopTrue, confirmation: true, children: , }, { palette: "plain-secondary", onClick: () => location.reload(), children: , }, ]}> {error} ); }