Files
overleaf-cep/services/web/frontend/js/shared/components/sidebar/ds-nav-overleaf-logo.tsx
T
Chris Dryden f81a7b2ff2 Merge pull request #35534 from overleaf/cd-share-sidenav-bar-with-library
[web] Share the dashboard sidebar with the library page

GitOrigin-RevId: 5595746fef6698bee6a35ee7fc8be15743e2c620
2026-09-17 11:37:57 +00:00

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>
)
}