import React from 'react'; import { KeyRound } from 'lucide-react'; /** Inline notice shown when an LLM-backed action needs a BYOK model that * isn't configured. Links to the Dev → BYOK settings. */ const ModelGate: React.FC<{ modality?: 'text' | 'vision'; loggedIn: boolean; what: string }> = ({ modality = 'text', loggedIn, what, }) => (
{loggedIn ? ( {what} needs a {modality} model.{' '} Add a BYOK key in Dev → settings. ) : ( Sign in with Hugging Face and add a {modality} key to use {what}. )}
); export default ModelGate;