import type { Metadata } from 'next';

const defaultOpenGraph: Metadata['openGraph'] = {
  type: 'website',
  locale: 'en_US',
  description: 'Create music with AI. Generate songs, covers, and instrumentals with Suno.',
  images: [
    {
      url: 'https://cdn1.suno.ai/preview.jpg',
      width: 2468,
      height: 800,
      type: 'image/jpeg',
      alt: 'Suno AI Music Generator',
    },
  ],
  siteName: 'Suno',
  title: 'Suno',
};

export const mergeOpenGraph = (og?: Metadata['openGraph']): Metadata['openGraph'] => {
  return {
    ...defaultOpenGraph,
    ...og,
    images: og?.images ? og.images : defaultOpenGraph.images,
  };
};
