mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-29 18:32:29 +00:00
Use /v3/auth/org-summaries for per-org plan tiers in settings (same as console v2). Extract chat empty state, add space-aware subtitle, and use AutoSpaceIcon in selectors.
37 lines
954 B
TypeScript
37 lines
954 B
TypeScript
"use client"
|
|
|
|
import { Shuffle } from "lucide-react"
|
|
import NovaOrb from "./nova-orb"
|
|
import { cn } from "@lib/utils"
|
|
|
|
/** Nova orb with a corner badge — Auto mode (Nova picks across spaces). */
|
|
export function AutoSpaceIcon({
|
|
size = 20,
|
|
className,
|
|
}: {
|
|
size?: number
|
|
className?: string
|
|
}) {
|
|
const badgeSize = Math.max(10, Math.round(size * 0.5))
|
|
const badgeIcon = Math.max(6, Math.round(badgeSize * 0.55))
|
|
|
|
return (
|
|
<span
|
|
className={cn("relative shrink-0", className)}
|
|
style={{ width: size, height: size }}
|
|
aria-hidden
|
|
>
|
|
<NovaOrb size={size} className="blur-[0.45px]!" />
|
|
<span
|
|
className="absolute -bottom-px -right-px flex items-center justify-center rounded-full bg-[#4BA0FA] text-[#041127] ring-1 ring-[#14161A]"
|
|
style={{ width: badgeSize, height: badgeSize }}
|
|
>
|
|
<Shuffle
|
|
className="shrink-0"
|
|
style={{ width: badgeIcon, height: badgeIcon }}
|
|
strokeWidth={2.5}
|
|
/>
|
|
</span>
|
|
</span>
|
|
)
|
|
}
|