/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; import { Circle } from "lucide-react"; import { ChevronDownIcon, ChevronUpIcon } from "@plane/propel/icons"; // mobx interface IHeaderSubGroupByCard { icon?: React.ReactNode; title: string; count: number; isExpanded: boolean; toggleExpanded: () => void; } export const HeaderSubGroupByCard = observer(function HeaderSubGroupByCard(props: IHeaderSubGroupByCard) { const { icon, title, count, isExpanded, toggleExpanded } = props; return (
toggleExpanded()} >
{isExpanded ? : }
{icon ? icon : }
{title}
{count || 0}
); });