import { Text } from "preact-i18n"; import { Modal } from "@revoltchat/ui"; interface Props { onClose: () => void; confirm: () => void; } export function SessionsModal({ onClose, confirm }: Props) { return ( } actions={[ { onClick: () => { onClose(); }, confirmation: true, palette: "accent", children: , }, { onClick: () => { confirm(); onClose(); }, confirmation: true, children: , }, ]}>
); }