This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web/components/SEO.tsx
2022-12-10 23:58:09 +01:00

23 lines
600 B
TypeScript

import Head from "next/head";
type seoprops = {
title?: string;
noatsign?: boolean; // simply add "noatsign" as property to element
description?: string;
};
const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
const defaultDescription = "Witryna internetowa Gractwa.";
return (
<Head>
<title>
{title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "gractwo.pl"}
</title>
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
<meta name="description" content={description || defaultDescription} />
</Head>
);
};
export default ComponentSEO;