import { Box, FormHelperText, TextField, Typography } from '@mui/material'; import { jsonDiffPageStyles } from '@/config/pageTheme'; interface JsonDiffInputProps { label: string; placeholder: string; value: string; onChange: (value: string) => void; error?: string | null; } export default function JsonDiffInput({ label, placeholder, value, onChange, error, }: JsonDiffInputProps) { return ( {label} onChange(e.target.value)} error={Boolean(error)} sx={jsonDiffPageStyles.INPUT_STYLE} /> {error && ( {error} )} ); } export { JsonDiffInput }; export type { JsonDiffInputProps };