import { businessConfig } from "@/lib/seo-config"

/**
 * Home-page WebSite schema used for site name understanding.
 */
export function StructuredData() {
  const structuredData = {
    "@context": "https://schema.org",
    "@type": "WebSite",
    name: businessConfig.name,
    alternateName: businessConfig.shortName,
    url: businessConfig.website,
    inLanguage: "en-US",
  }

  return (
    <script
      type="application/ld+json"
      dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
    />
  )
}
