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