"use client";
import { IconChevronDown, IconCheck, IconX } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Spinner } from "@kandev/ui/spinner";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { KeyboardShortcutTooltip } from "@/components/keyboard-shortcut-tooltip";
import { SHORTCUTS } from "@/lib/keyboard/constants";
import { cn } from "@/lib/utils";
import { useTranslation } from "react-i18next";
type ClarificationHeaderActionsProps = {
total: number;
allAnswered: boolean;
isSubmitting: boolean;
onSubmit: () => void;
onSkip: () => void;
onCollapse?: () => void;
collapseContentId?: string;
};
function ClarificationSkipButton({
isSubmitting,
onSkip,
label,
}: {
isSubmitting: boolean;
onSkip: () => void;
label: string;
}) {
const button = (
);
if (isSubmitting) return button;
return (