import React from "react"; import Helmet from "react-helmet"; import { useSiteMetadata } from "@/hooks"; import * as styles from "./Layout.module.scss"; interface Props { title: string; description?: string; socialImage?: string; children: React.ReactNode; } const Layout: React.FC = ({ children, title, description, socialImage = "", }: Props) => { const { author, url } = useSiteMetadata(); const metaImage = socialImage || author.photo; const metaImageUrl = url + metaImage; return (
{title} {children}
); }; export default Layout;