import React from "react";

interface TicketTextProps {
  label: string;
  value: string;
  onChange: (value: string) => void;
  required?: boolean;
}

const TicketText: React.FC<TicketTextProps> = ({
  label,
  value,
  onChange,
  required,
}) => {
  return (
    <div className="detail-group full-width">
      <label>{label}</label>

      <textarea
        rows={15}
        value={value}
        required={required}
        onChange={e => onChange(e.target.value)}
      />
    </div>
  );
};

export default TicketText;
