mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
(nextjs) added page titles everywhere
This commit is contained in:
parent
3da5aba726
commit
2ebafbad52
8 changed files with 55 additions and 4 deletions
15
src/components/common/PageTitle/index.tsx
Normal file
15
src/components/common/PageTitle/index.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import React, { VFC } from 'react';
|
||||
|
||||
import Head from 'next/head';
|
||||
|
||||
interface PageTitleProps {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const PageTitle: VFC<PageTitleProps> = ({ title }) => (
|
||||
<Head>
|
||||
<title>{title}</title>
|
||||
</Head>
|
||||
);
|
||||
|
||||
export { PageTitle };
|
Loading…
Add table
Add a link
Reference in a new issue