mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 23:19:39 -05:00
19 lines
408 B
TypeScript
19 lines
408 B
TypeScript
import Head from "next/head";
|
|
|
|
interface Props {
|
|
title: string;
|
|
appendSendouInk?: boolean;
|
|
}
|
|
|
|
const MyHead: React.FC<Props> = ({ title, appendSendouInk = true }) => {
|
|
const pageTitle = appendSendouInk ? `${title} | sendou.ink` : title;
|
|
return (
|
|
<Head>
|
|
<title>{pageTitle}</title>
|
|
<meta property="og:title" content={pageTitle} key="title" />
|
|
</Head>
|
|
);
|
|
};
|
|
|
|
export default MyHead;
|