mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:18:27 -04:00
27 lines
485 B
TypeScript
27 lines
485 B
TypeScript
import { NextSeo } from "next-seo";
|
|
|
|
import styles from "./Container.module.scss";
|
|
|
|
type Props = {
|
|
title?: string;
|
|
description?: string;
|
|
children: unknown;
|
|
};
|
|
|
|
const Container = ({ title, description, children }: Props) => {
|
|
return (
|
|
<>
|
|
<NextSeo
|
|
title={title}
|
|
description={description}
|
|
openGraph={{
|
|
title: title,
|
|
}}
|
|
/>
|
|
<div className={styles.container}>{children}</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Container;
|