// react import React, { useState } from "react"; // react-hook-form import { Control, Controller, UseFormWatch } from "react-hook-form"; // hooks import useUser from "lib/hooks/useUser"; // components import IssuesListModal from "components/project/issues/issues-list-modal"; // icons import { UserIcon } from "@heroicons/react/24/outline"; // types import { IIssue } from "types"; type Props = { control: Control; submitChanges: (formData: Partial) => void; issuesList: IIssue[]; customDisplay: JSX.Element; watch: UseFormWatch; }; const SelectParent: React.FC = ({ control, submitChanges, issuesList, customDisplay, watch, }) => { const [isParentModalOpen, setIsParentModalOpen] = useState(false); const { activeProject, issues } = useUser(); return (

Parent

( setIsParentModalOpen(false)} onChange={(val) => { submitChanges({ parent: val }); onChange(val); }} issues={issuesList} title="Select Parent" value={value} customDisplay={customDisplay} /> )} />
); }; export default SelectParent;