"use client"; import { Checkbox } from "@unlocalhosted/metalui"; export type RepoOption = { id: string; fullName: string; writable: boolean }; /** * The repositories a token or a connected app may reach, as checkboxes named `repos`. With * `needWrite`, ones the user can't push to can't be picked. */ export function RepoChecklist({ repos, needWrite }: { repos: RepoOption[]; needWrite: boolean }) { return (
You don’t have any repositories yet.
} {repos.map((r) => { const disabled = needWrite && !r.writable; return ( ); })}