import type { Metadata } from "next";

/** Standard public studio page metadata. */
export function studioPageMetadata(
  studioName: string,
  pageTitle: string,
  description?: string | null,
): Metadata {
  const title = `${pageTitle} · ${studioName}`;
  return {
    title,
    description:
      description?.trim() ||
      `${pageTitle} — ${studioName} on ARCHI`,
    robots: { index: true, follow: true },
  };
}
