mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[web] Share the dashboard sidebar with the library page GitOrigin-RevId: 5595746fef6698bee6a35ee7fc8be15743e2c620
23 lines
768 B
TypeScript
23 lines
768 B
TypeScript
import { useActiveOverallTheme } from '@/shared/hooks/use-active-overall-theme'
|
|
import getMeta from '@/utils/meta'
|
|
import overleafLogo from '@/shared/svgs/overleaf-a-ds-solution-mallard.svg'
|
|
import overleafLogoDark from '@/shared/svgs/overleaf-a-ds-solution-mallard-dark.svg'
|
|
|
|
export function DsNavOverleafLogo() {
|
|
const appName = getMeta('ol-ExposedSettings')?.appName ?? 'Overleaf'
|
|
const activeOverallTheme = useActiveOverallTheme()
|
|
|
|
return (
|
|
<div className="ds-nav-page-switcher-logo">
|
|
<a href="/" aria-label={appName}>
|
|
<img
|
|
src={activeOverallTheme === 'dark' ? overleafLogoDark : overleafLogo}
|
|
alt="Overleaf, A Digital Science Solution"
|
|
height="59"
|
|
width="130"
|
|
/>
|
|
</a>
|
|
</div>
|
|
)
|
|
}
|