Skip to content

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

580 B
Raw Blame
import type { ReactNode } from 'react';
import { cn } from '~/utils';

/**
 * Footer pinned to the bottom of a side panel. Sits outside the panel's scroll
 * area as a non-shrinking flex child, so it stays put while the list scrolls.
 */
export default function PanelFooter({
  children,
  className,
}: {
  children: ReactNode;
  className?: string;
}) {
  return (
    <div
      className={cn(
        'border-border-light bg-surface-sidebar flex shrink-0 items-center justify-end gap-2 border-t px-3 py-2',
        className,
      )}
    >
      {children}
    </div>
  );
}