mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
cf3b888465
* chore: adding page titles * chore: added title to remaining pages * fix: added observer at required places --------- Co-authored-by: LAKHAN BAHETI <lakhanbaheti9@gmail.com>
19 lines
299 B
TypeScript
19 lines
299 B
TypeScript
import Head from "next/head";
|
|
|
|
type PageHeadTitleProps = {
|
|
title?: string;
|
|
description?: string;
|
|
};
|
|
|
|
export const PageHead: React.FC<PageHeadTitleProps> = (props) => {
|
|
const { title } = props;
|
|
|
|
if (!title) return null;
|
|
|
|
return (
|
|
<Head>
|
|
<title>{title}</title>
|
|
</Head>
|
|
);
|
|
};
|