import { LegalDocPage } from "@/components/legal/LegalDocPage";
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
import type { Metadata } from "next";

export async function generateMetadata(): Promise<Metadata> {
  const doc = getLegalDoc("return-and-refund-policy");
  return {
    title: doc?.data.title ?? "Return and Refund Policy",
    description: doc?.data.description,
  };
}

export default function ReturnAndRefundPolicyPage() {
  return <LegalDocPage slug="return-and-refund-policy" />;
}
