import type { ReactNode } from 'react'; import type { SxProps, Theme } from '@mui/material/styles'; export type FieldFeedbackType = 'error' | 'warning' | 'success' | 'info'; export interface FieldFeedbackProps { /** Semantic type that controls the colour and default icon */ type?: FieldFeedbackType; /** Text or node displayed next to the icon — renders nothing when empty */ message?: ReactNode; /** Override the default type icon with a custom element */ icon?: ReactNode; className?: string; sx?: SxProps; }