import type { FC } from 'react' type Props = { id?: string messages?: string[] } export const FieldWarning: FC = ({ id, messages }: Props) => { if (messages == null || messages.length === 0) return null return ( ) } export default FieldWarning