mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
29 lines
736 B
TypeScript
29 lines
736 B
TypeScript
import { BASE_URL } from '@/lib/constants';
|
|
import { getTranslations } from 'next-intl/server';
|
|
|
|
const SITE_IMAGE = `${BASE_URL}/images/link_preview.png`;
|
|
// const SITE_ICON = `${BASE_URL}/images/icon.png`;
|
|
|
|
export const siteMetadata = async (props: {
|
|
title?: string;
|
|
description?: string;
|
|
image?: string;
|
|
}) => {
|
|
const dict = await getTranslations('metadata.root');
|
|
const { title, description = dict('description'), image = SITE_IMAGE } = props;
|
|
return {
|
|
metadataBase: new URL('https://stake.getsession.org'),
|
|
title: `${title ? `${title} | ` : ''}${dict('title')}`,
|
|
description,
|
|
openGraph: {
|
|
title,
|
|
description,
|
|
images: [
|
|
{
|
|
url: image,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
};
|