mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
16 lines
460 B
TypeScript
16 lines
460 B
TypeScript
import Head from 'next/head';
|
|
import * as React from 'react';
|
|
|
|
export interface IDescriptionProps {
|
|
value: string;
|
|
}
|
|
|
|
export const Description: React.FunctionComponent<IDescriptionProps> = ({value}: React.PropsWithChildren<IDescriptionProps>) => {
|
|
return (
|
|
<Head>
|
|
<meta name="description" content={value} />
|
|
<meta property="og:description" content={value} />
|
|
<meta property="twitter:description" content={value} />
|
|
</Head>
|
|
);
|
|
}; |