import type { CSSProperties } from "react"; interface IconProps { size?: number; } type CatppuccinIconName = | "_file" | "_folder" | "_folder_open" | "bash" | "config" | "css" | "database" | "docker" | "env" | "git" | "graphql" | "html" | "javascript" | "javascript-react" | "json" | "lock" | "npm-lock" | "bun-lock" | "next" | "eslint" | "markdown" | "ms-word" | "pdf" | "python" | "rust" | "sass" | "terraform" | "toml" | "typescript" | "typescript-react" | "yaml" | "go"; const CATPPUCCIN_ICONS_ROOT = "/icons/catppuccin"; function CatppuccinIcon({ name, size = 14 }: IconProps & { name: CatppuccinIconName }) { const style = { width: size, height: size, "--catppuccin-icon-light": `url(${CATPPUCCIN_ICONS_ROOT}/latte/${name}.svg)`, "--catppuccin-icon-dark": `url(${CATPPUCCIN_ICONS_ROOT}/mocha/${name}.svg)`, } as CSSProperties; return (