Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
/**
* Room the composer band leaves beneath itself from `sm` up. A footer bar sits
* there whenever `footerBelow` holds, and the band reserves it: doubled while
* the centred landing composer floats, dropped back the moment a submission
* starts the thread. With no bar beneath it, the band keeps only enough to
* clear the surface's own shadow, on the welcome screen as in a conversation.
* Below `sm` the composer runs to the viewport floor in every state.
*/
export default function composerClearance({
isLandingPage,
footerBelow,
floating,
}: {
isLandingPage: boolean;
footerBelow: boolean;
floating: boolean;
}): string {
if (!footerBelow) {
return 'sm:mb-4';
}
if (isLandingPage && floating) {
return 'transition-all duration-200 sm:mb-28';
}
return 'sm:mb-10';
}