import FieldLabel from "@/components/contactUs/FieldLabel";
import Field from "@/app/component/fields/Field";

function Content({ setData, data }) {
  const handleChange = (name, value) =>
    setData((prev) => ({ ...prev, [name]: value }));

  return (
    <div className="mt-[32px] md:mt-[36px] lg:mt-[40px] flex flex-col gap-[24px] md:gap-[28px] lg:gap-[32px] px-0 sm:px-[52px]">
      <FieldLabel title="بیماری">
        <Field
          title=""
          type="text"
          name="relation"
          isPlaceHolder={true}
          value={data?.relation}
          handleChange={handleChange}
        />
      </FieldLabel>
      <FieldLabel title="نسبت خانوادگی">
        <Field
          title=""
          type="text"
          name="disease"
          isPlaceHolder={true}
          value={data?.disease}
          handleChange={handleChange}
        />
      </FieldLabel>
    </div>
  );
}

export default Content;
