(props: Props)
| 8 | } |
| 9 | |
| 10 | function 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 | |
| 26 | export default MemosLogo; |
nothing calls this directly
no test coverage detected