"use client"; import { IconArrowsMaximize, IconChevronDown } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; import { useTranslation } from "react-i18next"; import type { ActiveThread } from "@/lib/threads/active-threads"; import type { ThreadStatus } from "@/lib/threads/thread-session-status"; import type { TaskSession } from "@/lib/types/http"; import { ThreadSessionStatusIcon, ThreadSessionSwitcher } from "./thread-session-switcher"; import { ThreadTaskMenuButton } from "./thread-task-actions"; export type MobileThreadNavigation = { onChoose: () => void; }; export function MobileThreadColumnHeader({ thread, status, sessions, selectedSessionId, onSelectSession, onOpenTask, navigation, }: { thread: ActiveThread; status: ThreadStatus; sessions: readonly TaskSession[]; selectedSessionId: string | null; onSelectSession: (sessionId: string) => void; onOpenTask: (taskId: string) => void; navigation: MobileThreadNavigation; }) { const { t } = useTranslation(); return (
{t(status.labelKey)}
); }