mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 20:49:53 +08:00
30 lines
1007 B
TypeScript
30 lines
1007 B
TypeScript
"use client"
|
|||
|
|
|
||
|
|
import { getAssetUrl } from "@/lib/base-path"
|
||
|
|
import { cn } from "@/lib/utils"
|
||
|
|
|
||
|
|
/** The app icon in a rounded tile; the white variant is used in dark mode */
|
||
|
|
export function BrandMark({ className }: { className?: string }) {
|
||
|
|
return (
|
||
|
|
<span
|
||
|
|
className={cn(
|
||
|
|
"relative inline-flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-card",
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
>
|
||
|
|
{/* biome-ignore lint/performance/noImgElement: tiny static icon */}
|
||
|
|
<img
|
||
|
|
src={getAssetUrl("/favicon-192x192.png")}
|
||
|
|
alt=""
|
||
|
|
className="size-full object-contain dark:hidden"
|
||
|
|
/>
|
||
|
|
{/* biome-ignore lint/performance/noImgElement: tiny static icon */}
|
||
|
|
<img
|
||
|
|
src={getAssetUrl("/favicon-white.svg")}
|
||
|
|
alt=""
|
||
|
|
className="hidden size-5 object-contain dark:block"
|
||
|
|
/>
|
||
|
|
</span>
|
||
|
|
)
|
||
|
|
}
|