import { b as useRuntimeConfig, c as useSchemaOrg } from './server.mjs';

const useServiceSchema = ({
  name,
  serviceType,
  description,
  url
}) => {
  const config = useRuntimeConfig();
  const siteUrl = config.public.BASE_URL;
  const toAbs = (path) => new URL(path, siteUrl).toString();
  useSchemaOrg([
    {
      "@type": "Service",
      "@id": `${toAbs(url)}#service`,
      name,
      serviceType,
      description,
      provider: {
        "@id": "https://webstdy.com/#identity"
      },
      areaServed: [
        { "@type": "Country", name: "Egypt" },
        { "@type": "Country", name: "Saudi Arabia" },
        { "@type": "AdministrativeArea", name: "Worldwide" }
      ],
      url: toAbs(url)
    }
  ]);
};

export { useServiceSchema as u };
//# sourceMappingURL=useServiceSchema-Dyp2N0pk.mjs.map
