import { organizationNode, websiteNode } from "@/lib/seo/structured-data";
import { JsonLdScript } from "@/components/meta/json-ld-script";

/**
 * Global, site-wide structured data: Organization + WebSite only.
 *
 * Page-specific schema (e.g. SoftwareApplication/Offers on `/pricing`, Service
 * on `/services`, Article on blog posts) is emitted by the relevant page so it
 * never appears on pages it doesn't describe.
 */
export const JsonLd = () => {
  const data = {
    "@context": "https://schema.org",
    "@graph": [organizationNode(), websiteNode()],
  };
  return <JsonLdScript data={data} />;
};
