Files
mkdirs/src/app/(website)/(protected)/(submit)/submit/page.tsx
T
2026-08-09 23:23:29 +08:00

29 lines
905 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { SubmitForm } from "@/components/submit/submit-form";
import { siteConfig } from "@/config/site";
import { constructMetadata } from "@/lib/metadata";
import type {
CategoryListQueryResult,
TagListQueryResult,
} from "@/sanity.types";
import { sanityFetch } from "@/sanity/lib/fetch";
import { categoryListQuery, tagListQuery } from "@/sanity/lib/queries";
export const metadata = constructMetadata({
title: "Submit your product (1/3)",
description: "Submit your product (1/3) – Enter product details",
canonicalUrl: `${siteConfig.url}/submit`,
});
export default async function SubmitPage() {
const [categoryList, tagList] = await Promise.all([
sanityFetch<CategoryListQueryResult>({
query: categoryListQuery,
}),
sanityFetch<TagListQueryResult>({
query: tagListQuery,
}),
]);
return <SubmitForm tagList={tagList} categoryList={categoryList} />;
}