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"; export function GitHubAppRegistrationList({ registrations, value, onChange, }: { registrations: GitHubAppRegistrationCatalogItem[]; value: string; onChange: (registrationId: string) => void; }) { if (!registrations.length) { return (
No GitHub Apps are registered yet. Add an existing App or create one below.
); } return ( {registrations.map((registration) => ( ))} ); }