import React from 'react'; import classNames from 'classnames'; import { StatusState } from '../../utils/input-statuses'; interface FormStatusIndicatorProps { status: StatusState; } export default function FormStatusIndicator({ status }: FormStatusIndicatorProps) { const { type, icon, message } = status || {}; const classes = classNames({ 'status-container': true, [`status-${type}`]: type, empty: !message, }); return (