import { Link } from "@tanstack/react-router" import { useTheme } from "@/components/theme-provider" import { cn } from "@/lib/utils" import logoDark from "/assets/images/fluksio-dark.svg" import logo from "/assets/images/fluksio-light.svg" interface LogoProps { variant?: "full" | "icon" | "responsive" className?: string asLink?: boolean } export function Logo({ variant = "full", className, asLink = true, }: LogoProps) { const { resolvedTheme } = useTheme() const src = resolvedTheme === "dark" ? logoDark : logo // The mark and the wordmark live in the same SVG, so the collapsed sidebar // shows the same asset cropped to a square rather than a separate icon file. const content = variant === "responsive" ? ( <> Fluksio ) : ( Fluksio ) if (!asLink) { return content } return {content} }