type JsonFieldProps = {
  label: string;
  value: string;
  onChange: (value: string) => void;
};

export function JsonField({ label, value, onChange }: JsonFieldProps) {
  return (
    <label>
      {label}
      <textarea className="json-field" spellCheck={false} value={value} onChange={(event) => onChange(event.target.value)} />
    </label>
  );
}
