import type { PropsWithChildren } from 'react' interface StateMessageProps extends PropsWithChildren { actionLabel?: string onAction?: () => void role?: 'status' | 'alert' } export function StateMessage({ children, actionLabel, onAction, role = 'status', }: StateMessageProps): JSX.Element { return (
{children}
{actionLabel != null && onAction != null && ( )}