import React, { FC } from "react"; // lucide icons import { Minimize2, Maximize2, Circle } from "lucide-react"; // mobx import { observer } from "mobx-react-lite"; interface IHeaderGroupByCard { sub_group_by: string | null; group_by: string | null; column_id: string; icon?: React.ReactNode; title: string; count: number; kanBanToggle: any; handleKanBanToggle: any; } export const HeaderGroupByCard: FC = observer((props) => { const { sub_group_by, column_id, icon, title, count, kanBanToggle, handleKanBanToggle } = props; const verticalAlignPosition = kanBanToggle?.groupByHeaderMinMax.includes(column_id); return (
{icon ? icon : }
{title}
{count || 0}
{sub_group_by === null && (
handleKanBanToggle("groupByHeaderMinMax", column_id)} > {verticalAlignPosition ? : }
)} {/*
*/}
); });