import React from "react";
// lucide icons
import { Plus, Minimize2, Maximize2, Circle } from "lucide-react";
// mobx
import { observer } from "mobx-react-lite";
// store
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";

interface IHeaderGroupByCard {
  icon?: React.ReactNode;
  title: string;
  count: number;
}

export const HeaderGroupByCard = observer(({ icon, title, count }: IHeaderGroupByCard) => {
  const verticalAlignPosition = false;

  return (
    <div
      className={`flex-shrink-0 relative flex gap-2 p-1.5 ${
        verticalAlignPosition ? `flex-col items-center w-[44px]` : `flex-row items-center w-full`
      }`}
    >
      <div className="flex-shrink-0 w-[20px] h-[20px] rounded-sm overflow-hidden flex justify-center items-center">
        {icon ? icon : <Circle width={14} strokeWidth={2} />}
      </div>

      <div className={`flex items-center gap-1 ${verticalAlignPosition ? `flex-col` : `flex-row w-full`}`}>
        <div className={`font-medium line-clamp-1 text-custom-text-100 ${verticalAlignPosition ? `vertical-lr` : ``}`}>
          {title}
        </div>
        <div className={`text-sm font-medium text-custom-text-300 ${verticalAlignPosition ? `` : `pl-2`}`}>
          {count || 0}
        </div>
      </div>

      {/* <div className="flex-shrink-0 w-[20px] h-[20px] rounded-sm overflow-hidden flex justify-center items-center hover:bg-custom-background-80 cursor-pointer transition-all">
          <Plus width={14} strokeWidth={2} />
        </div> */}
    </div>
  );
});
