import { SegmentationGroupResponse, ManagerSurvey } from '../../../../types';

import { SelectAllState } from '../../hooks/useFilterState/types';

export type SegmentFilterItemProps = {
  surveyId: ManagerSurvey['id'];
  groupId: SegmentationGroupResponse['id'];
  groupType: SegmentationGroupResponse['type'];
  onSelectItem: (
    groupId: number,
    itemId: number,
    itemName: string,
    checked: boolean,
  ) => void;
  allChecked: (groupId: number) => void;
  isItemSelected: (groupId: number, itemId: number) => boolean;
  getSelectAllState: (groupId: number) => SelectAllState;
  active?: boolean;
  onIndexTotalCountChange: (groupId: number, count: number) => void;
  onIndexItemsChange: (
    groupId: number,
    items: { id: number; name: string }[],
  ) => void;
};
