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

576 B
Raw Blame
export const BlinkAnimation = ({
  active,
  children,
}: {
  active: boolean;
  children: React.ReactNode;
}) => {
  if (!active) {
    return <>{children}</>;
  }

  /**
   * Animation comes from the `blink` keyframes in the Tailwind config rather than an
   * inline `<style>` tag: stylesheet text rendered into the DOM becomes part of the
   * ancestor's `textContent` and leaks raw CSS into label readouts. `motion-reduce`
   * honours a user's reduced-motion preference.
   */
  return <div className="animate-logo-blink motion-reduce:animate-none">{children}</div>;
};