import { ExpertYancen } from '@/views';
import type { Metadata } from 'next';

const metainfo = {
  title: 'Эксперт - Янцен Яна Николаевна',
  description:
    'Услуги независимой оценки и судебной экспертизы в Сочи и Краснодаре.',
  companyName: 'Компания ДИТРАСО',
  phone: '+7 (900) 241-34-34',
  url: 'https://ocenka-sochi.ru',
  ogImageTitle: 'Оценка и экспертиза',
  ogImageDescription: 'Независимая оценка и судебная экспертиза',
};

export const metadata: Metadata = {
  title: `${metainfo.title} | ${metainfo.companyName}`,
  description: `${metainfo.description} ${metainfo.phone}`,
  openGraph: {
    title: metainfo.title,
    description: metainfo.description,
    url: metainfo.url,
    images: [
      {
        url: `${metainfo.url}/api/og/?title=${metainfo.title}&description=${metainfo.description}`,
        secureUrl: `${metainfo.url}/api/og/?title=${metainfo.title}&description=${metainfo.description}`,
        width: 600,
        height: 315,
        alt: `${metainfo.title} - ${metainfo.companyName}`,
      },
    ],
    locale: 'ru_RU',
    type: 'website',
    siteName: `${metainfo.title} - ${metainfo.companyName}`,
  },
  twitter: {
    card: 'summary_large_image',
    title: `${metainfo.title} - ${metainfo.companyName}`,
    description: `${metainfo.description} ${metainfo.phone}`,
    creator: '@ditraso',
    images: [
      {
        url: `${metainfo.url}/api/og/?title=${metainfo.title}&description=${metainfo.description}`,
        width: 600,
        height: 315,
        alt: `${metainfo.title} - ${metainfo.companyName}`,
      },
    ],
  },
};

export default function Page() {
  return <ExpertYancen />;
}
