);
};
/**
* Inline "this workspace can't chat yet" tray, mirrored on top of the composer
* (same visual treatment as the "Connect your tools" tray below it).
*
* Replaces the old full-screen onboarding redirect: a workspace with no usable
* chat model (fresh install, or an admin deleted the last model) renders the
* composer in place with this notice instead of navigating away. Configurable
* members get a CTA to connect one; everyone else is told to ask an admin. The
* send button stays disabled independently, and the backend rejects any send
* that slips through, so this is purely guidance.
*
* Presentational: visibility is decided by the parent so the composer can flatten
* its top shadow for a seamless join.
*/
const ChatUnavailableNotice: FC<{ workspaceId: number; canConfigure: boolean }> = ({
workspaceId,
canConfigure,
}) => {
const router = useRouter();
return (
{canConfigure
? "Connect a chat model to start chatting."
: "No model available. Ask a workspace admin to connect a chat model."}