import { IconAlertTriangle, IconCheck } from "@tabler/icons-react"; import { Badge } from "@kandev/ui/badge"; import { Label } from "@kandev/ui/label"; import { RadioGroup, RadioGroupItem } from "@kandev/ui/radio-group"; import type { GitHubAppRegistrationCatalogItem } from "@/lib/types/github"; import { cn } from "@/lib/utils"; import { useTranslation } from "react-i18next"; export function GitHubAppRegistrationList({ registrations, value, onChange, }: { registrations: GitHubAppRegistrationCatalogItem[]; value: string; onChange: (registrationId: string) => void; }) { const { t } = useTranslation(); if (!registrations.length) { return (
{t("github:noGithubAppsAreRegisteredYet")}
); } return ( {registrations.map((registration) => ( ))} ); }