"use client"; import { useEffect, useState } from "react"; import { IconEye, IconEyeOff } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; import { Input } from "@kandev/ui/input"; import { Label } from "@kandev/ui/label"; import { useTranslation } from "react-i18next"; import { settingsCredentialClassName } from "@/components/settings/settings-control"; export function GitHubPATForm({ workspaceId, value, onChange, disabled, }: { workspaceId: string; value: string; onChange: (value: string) => void; disabled?: boolean; }) { const { t } = useTranslation(); const [visible, setVisible] = useState(false); useEffect(() => { setVisible(false); }, [workspaceId]); return (
{t("github:kandevStoresThisTokenForThis")}