import { Paper, Stack, Text, Title } from "@mantine/core"; import type { FC, ReactNode } from "react"; type StateViewProps = { title: string; text: string; action?: ReactNode; error?: boolean; }; const StateView: FC = (props) => { const { title, text, action, error = false } = props; const role = error ? "alert" : undefined; return ( {title} {text} {action} ); }; export { StateView };