import { createRoot } from "react-dom/client"; import { Select, TooltipProvider } from "@cloudflare/kumo"; export interface ForkOption { url: string; repoName: string; head: string; } /** The host retains selection authority; this component renders only the authorized list. */ export function mountForkPicker(root: HTMLElement, change: (url: string) => void) { const react = createRoot(root); return { render(forks: ForkOption[], value: string | undefined, message: string, loading = false) { react.render(