import i18n from "i18next"; import * as React from "react"; import Button from "focus-components/button"; import {injectStyle} from "../../../theming"; import * as styles from "./style/group.css"; export type GroupComponentStyle = Partial; export interface GroupComponentProps { canShowMore: boolean; classNames?: GroupComponentStyle; count: number; groupKey: string; groupLabel: string; showAllHandler?: (groupKey: string) => void; showMoreHandler: () => void; children?: React.ClassicElement[]; }; export const GroupComponent = injectStyle("groupComponent", ({ canShowMore, classNames, count, children, groupKey, groupLabel, showAllHandler, showMoreHandler }: GroupComponentProps) => (

{`${groupLabel} (${count || 0})`}

{children}
{canShowMore ?
));