import type { Metadata } from 'next'

export const metadata: Metadata = {
  title: 'Greyscan | Greywall',
  description: 'Inspect what an unrestricted AI agent would likely try on your machine from a public repository context.',
  alternates: {
    canonical: 'https://greywall.io/greyscan',
  },
  openGraph: {
    title: 'Greyscan | Greywall',
    description: 'Inspect what an unrestricted AI agent would likely try on your machine from a public repository context.',
    url: 'https://greywall.io/greyscan',
    siteName: 'Greywall',
    type: 'website',
  },
}

const breadcrumbJsonLd = {
  '@context': 'https://schema.org',
  '@type': 'BreadcrumbList',
  itemListElement: [
    { '@type': 'ListItem', position: 1, name: 'Greywall', item: 'https://greywall.io' },
    { '@type': 'ListItem', position: 2, name: 'Greyscan', item: 'https://greywall.io/greyscan' },
  ],
}

export default function ExposureLayout({ children }: { children: React.ReactNode }) {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbJsonLd) }}
      />
      {children}
    </>
  )
}
