| 123456789101112131415161718192021222324252627282930 |
- import React, { ReactNode } from 'react';
- import Head from 'next/head';
- type Props = {
- title: string,
- className?: string,
- children?: ReactNode,
- }
- export const RawLayout = ({ children, title, className }: Props): JSX.Element => {
- const classNames: string[] = ['wrapper'];
- if (className != null) {
- classNames.push(className);
- }
- return (
- <>
- <Head>
- <title>{title}</title>
- <meta charSet="utf-8" />
- <meta name="viewport" content="initial-scale=1.0, width=device-width" />
- </Head>
- <div className={classNames.join(' ')}>
- {children}
- </div>
- </>
- );
- };
|