import { observer } from "mobx-react-lite"; import { Control, Controller, UseFormSetValue } from "react-hook-form"; // hooks import { useProject } from "hooks/store"; // components import { SelectProject, SelectSegment, SelectXAxis, SelectYAxis } from "components/analytics"; // types import { IAnalyticsParams } from "@plane/types"; type Props = { control: Control; setValue: UseFormSetValue; params: IAnalyticsParams; fullScreen: boolean; isProjectLevel: boolean; }; export const CustomAnalyticsSelectBar: React.FC = observer((props) => { const { control, setValue, params, fullScreen, isProjectLevel } = props; const { workspaceProjectIds: workspaceProjectIds } = useProject(); return (
{!isProjectLevel && (
Project
( )} />
)}
Measure (y-axis)
} />
Dimension (x-axis)
( { if (params.segment === val) setValue("segment", null); onChange(val); }} params={params} /> )} />
Group
( )} />
); });