import { IconRefresh } from "@tabler/icons-react" import { useTranslation } from "react-i18next" import type { OAuthFlowState } from "@/api/oauth" import { Button } from "@/components/ui/button" import { Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, } from "@/components/ui/sheet" interface DeviceCodeSheetProps { open: boolean flow: OAuthFlowState | null flowHint: string onOpenChange: (open: boolean) => void } export function DeviceCodeSheet({ open, flow, flowHint, onOpenChange, }: DeviceCodeSheetProps) { const { t } = useTranslation() return ( {t("credentials.device.title")} {t("credentials.device.description")}

{t("credentials.device.code")}

{flow?.user_code || "-"}

{t("credentials.device.url")}

{flow?.verify_url || "-"}
{t("credentials.device.polling")}
{flow && (
{flowHint}
)}
) }