import { IconMessageCircle } from "@tabler/icons-react"; import { useTranslation } from "react-i18next"; import { Button } from "@kandev/ui/button"; import { useAppStore } from "@/components/state-provider"; import { selectQuickChatHasUnseenIdle } from "@/lib/state/slices/ui/quick-chat-unseen-selectors"; /** Quick Chat action in the mobile task-switcher sheet, with the unseen-idle dot. */ export function QuickChatSheetButton({ workspaceId, onClick, }: { workspaceId: string; onClick: () => void; }) { const { t } = useTranslation(); const hasUnseenIdle = useAppStore((state) => selectQuickChatHasUnseenIdle(state, workspaceId)); const quickChatLabel = t(hasUnseenIdle ? "sidebar:quickChatUnseen" : "sidebar:quickChat"); return ( ); }