diff --git a/components/NotionPageHeader.tsx b/components/NotionPageHeader.tsx
index 64583055c6..e408c4d0ff 100644
--- a/components/NotionPageHeader.tsx
+++ b/components/NotionPageHeader.tsx
@@ -4,9 +4,17 @@ import { IoSunnyOutline } from '@react-icons/all-files/io5/IoSunnyOutline'
import { IoMoonSharp } from '@react-icons/all-files/io5/IoMoonSharp'
import { Header, Breadcrumbs, Search, useNotionContext } from 'react-notion-x'
import * as types from 'notion-types'
+import Image from 'next/image'
import { useDarkMode } from 'lib/use-dark-mode'
-import { navigationStyle, navigationLinks, isSearchEnabled } from 'lib/config'
+import {
+ navigationStyle,
+ navigationLinks,
+ isSearchEnabled,
+ customHeaderLogo,
+ customHeaderLogoDark,
+ rootNotionPageId
+} from 'lib/config'
import styles from './styles.module.css'
@@ -32,6 +40,48 @@ const ToggleThemeButton = () => {
)
}
+export const HeaderLogo: React.FC<{
+ block: types.CollectionViewPageBlock | types.PageBlock
+}> = ({ block }) => {
+ const { components, mapPageUrl } = useNotionContext()
+
+ const { isDarkMode } = useDarkMode()
+
+ const LinkWrapper = (props: {
+ currentPage: string
+ children: JSX.Element
+ }) => {
+ if (props.currentPage !== '/') {
+ return (
+