"use client"; import { IconAdjustments, IconCheck, IconPlus } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; import { useTranslation } from "react-i18next"; import { threadViewName } from "@/lib/state/slices/ui/thread-view-builtins"; import type { ThreadView } from "@/lib/state/slices/ui/thread-view-types"; export function MobileThreadViewList({ activeView, views, hasDraft, admittedCount, matchingCount, hiddenCount, disabledReason, onSelect, onNewView, onOpenSettings, }: { activeView: ThreadView; views: ThreadView[]; hasDraft: boolean; admittedCount: number; matchingCount: number; hiddenCount: number; disabledReason: string | null; onSelect: (id: string) => void; onNewView: () => void; onOpenSettings: () => void; }) { const { t } = useTranslation(); return (
{t("threads:columnsSummary", { admitted: admittedCount, matching: matchingCount })} {hiddenCount > 0 && ( {t("threads:hiddenCount", { count: hiddenCount })} )}
{hasDraft && }
{views.map((view) => ( ))}
); } export function ThreadViewDraftHint() { const { t } = useTranslation(); return (

{t("threads:saveOrDiscardBeforeSwitchingView")}

); }