// react-hook-form import { Control, Controller, UseFormSetValue } from "react-hook-form"; // components import { SelectProject, SelectSegment, SelectXAxis, SelectYAxis } from "components/analytics"; // types import { IAnalyticsParams, IProject } from "types"; type Props = { control: Control; setValue: UseFormSetValue; projects: IProject[]; params: IAnalyticsParams; fullScreen: boolean; isProjectLevel: boolean; }; export const AnalyticsSelectBar: React.FC = ({ control, setValue, projects, params, fullScreen, isProjectLevel, }) => (
{!isProjectLevel && (
Project
( )} />
)}
Measure (y-axis)
( )} />
Dimension (x-axis)
( { if (params.segment === val) setValue("segment", null); onChange(val); }} /> )} />
Group
( )} />
);