import { Badge } from "../components/badge"; import { Button } from "../components/button"; export { effectiveSourceCredentialBinding, missingSourceCredentialLabels, type SourceCredentialBindingRef, type SourceCredentialSlot, } from "./source-credential-status-core"; export function SourceCredentialStatusBadge(props: { readonly missing: readonly string[] }) { if (props.missing.length === 0) { return ( Credentials ready ); } return ( Credentials needed ); } export function SourceCredentialNotice(props: { readonly missing: readonly string[]; readonly onAction?: () => void; }) { if (props.missing.length === 0) return null; return (
Credentials need attention
Missing {props.missing.join(", ")}
{props.onAction && ( )}
); }