mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-17 12:20:04 +00:00
- Mobile responsive - new toast design - web document render issue fix - posthog analytics - ui improvements
36 lines
925 B
TypeScript
36 lines
925 B
TypeScript
import { Logo } from "@ui/assets/Logo"
|
|
import { Button } from "@ui/components/button"
|
|
|
|
export function InitialHeader({
|
|
showUserSupermemory,
|
|
name,
|
|
}: {
|
|
showUserSupermemory?: boolean
|
|
name?: string
|
|
}) {
|
|
const userName = name ? `${name.split(" ")[0]}'s` : "My"
|
|
return (
|
|
<div className="flex p-6 justify-between items-center">
|
|
<div className="flex items-center z-10!">
|
|
<Logo className="h-7" />
|
|
{showUserSupermemory && (
|
|
<div className="flex flex-col items-start justify-center ml-2">
|
|
<p className="text-[#8B8B8B] text-[11px] leading-tight">
|
|
{userName}
|
|
</p>
|
|
<p className="text-white font-bold text-xl leading-none -mt-1">
|
|
supermemory
|
|
</p>
|
|
</div>
|
|
)}
|
|
</div>
|
|
<Button
|
|
variant="newDefault"
|
|
className="rounded-2xl text-base gap-1 h-11! z-10!"
|
|
size={"lg"}
|
|
>
|
|
Memory API <span className="text-xs mt-[4px]">↗</span>
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|