import { cn } from "~/lib/utils"; import type { FlagConfig } from "~/lib/flag-types"; interface FlagSvgProps { config: FlagConfig; size?: number; className?: string; title?: string; } export function FlagSvg({ config, size = 48, className, title }: FlagSvgProps) { const [c0 = "", c1 = "", c2 = ""] = config.colors; return ( {title ? {title} : null} {config.pattern === "triband-h" && ( <> )} {config.pattern === "triband-v" && ( <> )} {config.pattern === "diagonal" && ( <> )} {config.pattern === "nordic-cross" && ( <> )} {config.pattern === "cross" && ( <> )} {config.pattern === "canton" && ( <> )} {config.pattern === "triangle" && ( <> )} {config.pattern === "chevron" && ( <> )} {config.pattern === "quartered" && ( <> )} {config.pattern === "bordered" && ( <> )} {config.pattern === "circle" && ( <> )} {config.pattern === "star" && ( <> )} ); }