mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-23 15:33:52 +00:00
24 lines
465 B
TypeScript
24 lines
465 B
TypeScript
import { cn } from "@lib/utils"
|
|
import { SpaceFolderIcon } from "./space-folder-icon"
|
|
|
|
export function SpaceGlyph({
|
|
emoji,
|
|
size = 16,
|
|
className,
|
|
}: {
|
|
emoji?: string | null
|
|
size?: number
|
|
className?: string
|
|
}) {
|
|
if (!emoji || emoji === "📁") {
|
|
return <SpaceFolderIcon size={size} className={cn("shrink-0", className)} />
|
|
}
|
|
return (
|
|
<span
|
|
className={cn("shrink-0 leading-none", className)}
|
|
style={{ fontSize: size }}
|
|
>
|
|
{emoji}
|
|
</span>
|
|
)
|
|
}
|