"use client" import * as React from "react" import { useTheme } from "next-themes" import { cn } from "@/lib/utils" interface AetherLogoProps { className?: string width?: number height?: number collapsedWidth?: number collapsedHeight?: number } export function AetherLogo({ className, width = 20, height = 20, collapsedWidth, collapsedHeight }: AetherLogoProps) { const { resolvedTheme } = useTheme() const [mounted, setMounted] = React.useState(false) // Only render after hydration to avoid SSR mismatch React.useEffect(() => { setMounted(true) }, []) // Show a simple fallback during SSR/hydration if (!mounted) { return (
) } // Determine which logo to show based on theme after hydration const isDark = resolvedTheme === 'dark' const logoSrc = isDark ? '/logo-dark.png' : '/logo-light.png' return (
Aether AI Logo {collapsedWidth && collapsedHeight && ( Aether AI Logo )}
) }