import { useRouter } from "#app";
import { defineOgImageRaw } from "./_defineOgImageRaw.js";
export function defineOgImageScreenshot(options = {}) {
  const router = useRouter();
  const route = router.currentRoute.value?.path || "/";
  return defineOgImageRaw({
    alt: `Web page screenshot${route ? ` of ${route}` : ""}.`,
    renderer: "browser",
    extension: "jpeg",
    component: "PageScreenshot",
    // this is an alias
    ...options
  });
}
