MCPcopy
hub / github.com/usememos/memos / MemosLogo

Function MemosLogo

web/src/components/MemosLogo.tsx:10–24  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

8}
9
10function MemosLogo(props: Props) {
11 const { collapsed } = props;
12 const { generalSetting: instanceGeneralSetting } = useInstance();
13 const title = instanceGeneralSetting.customProfile?.title || "Memos";
14 const avatarUrl = instanceGeneralSetting.customProfile?.logoUrl || "/full-logo.webp";
15
16 return (
17 <div className={cn("relative w-full h-auto shrink-0", props.className)}>
18 <div className={cn("w-auto flex flex-row justify-start items-center text-foreground", collapsed ? "px-1" : "px-3")}>
19 <UserAvatar className="shrink-0" avatarUrl={avatarUrl} />
20 {!collapsed && <span className="ml-2 text-lg font-medium text-foreground shrink truncate">{title}</span>}
21 </div>
22 </div>
23 );
24}
25
26export default MemosLogo;

Callers

nothing calls this directly

Calls 2

useInstanceFunction · 0.90
cnFunction · 0.90

Tested by

no test coverage detected