forked from reactjs/react.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
35 lines (33 loc) · 766 Bytes
/
index.tsx
File metadata and controls
35 lines (33 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {Seo} from 'components/Seo';
import SocialBanner from '../SocialBanner';
interface HeaderProps {
title: string;
titleForTitleTag: string;
section: string;
routeTree: any;
breadcrumbs: any;
isHomePage: boolean;
searchOrder: number | undefined;
}
const HeaderComponent = ({
title,
titleForTitleTag,
section,
isHomePage,
searchOrder,
}: HeaderProps) => {
return (
<>
<Seo
title={title}
titleForTitleTag={titleForTitleTag}
isHomePage={isHomePage}
image={`/images/og-` + section + '.png'}
searchOrder={searchOrder}
/>
<SocialBanner />
{/* <TopNav section={section} routeTree={routeTree} breadcrumbs={breadcrumbs} /> */}
</>
);
};
export default HeaderComponent;