"use client";
import { IconEye, IconEyeOff } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { useTranslation } from "react-i18next";
type TaskCreateLaunchPreviewToggleProps = {
active: boolean;
disabled?: boolean;
stepName: string;
onToggle: () => void;
};
export function TaskCreateLaunchPreviewToggle({
active,
disabled,
stepName,
onToggle,
}: TaskCreateLaunchPreviewToggleProps) {
const { t } = useTranslation();
const label = active
? t("task:editTaskPrompt")
: t("task:previewLaunchPrompt", { step: stepName });
return (