import { TextField } from '@mui/material';
import { FieldComponentProps } from '../../types/overrides';

export default function FallbackField({ field, value }: FieldComponentProps) {
  return (
    <TextField
      fullWidth
      label={field.label}
      value={typeof value === 'object' ? JSON.stringify(value) : value || ''}
      disabled
    />
  );
}
