import { Controller, useFormContext } from "react-hook-form"; import { IProject } from "@plane/types"; import { CustomSelect } from "@plane/ui"; import { MemberDropdown } from "@/components/dropdowns"; import { NETWORK_CHOICES } from "@/constants/project"; const ProjectAttributes = () => { const { control } = useFormContext(); return (
{ const currentNetwork = NETWORK_CHOICES.find((n) => n.key === value); return (
{currentNetwork ? ( <> {currentNetwork.label} ) : ( Select network )}
} placement="bottom-start" className="h-full" buttonClassName="h-full" noChevron tabIndex={4} > {NETWORK_CHOICES.map((network) => (

{network.label}

{network.description}

))}
); }} /> { if (value === undefined || value === null || typeof value === "string") return (
onChange(lead === value ? null : lead)} placeholder="Lead" multiple={false} buttonVariant="border-with-text" tabIndex={5} />
); else return <>; }} /> ); }; export default ProjectAttributes;