Modulo makers3d desarrollado con codex V 0.0.1
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import InquiryWizardClient from "../../components/InquiryWizardClient";
|
||||
|
||||
export default async function NewInquiryPage({
|
||||
searchParams
|
||||
}: {
|
||||
searchParams?: Promise<Record<string, string | string[] | undefined>>;
|
||||
}) {
|
||||
const params = await searchParams;
|
||||
const makerId = typeof params?.makerId === "string" ? params.makerId : "";
|
||||
const sourceType = typeof params?.sourceType === "string" ? params.sourceType as "profile" | "service" | "work" : "profile";
|
||||
const sourceId = typeof params?.sourceId === "string" ? params.sourceId : "";
|
||||
const makerName = typeof params?.makerName === "string" ? params.makerName : "Maker";
|
||||
const contextTitle = typeof params?.contextTitle === "string" ? params.contextTitle : "Consulta nueva";
|
||||
const returnTo = typeof params?.returnTo === "string" ? params.returnTo : "/";
|
||||
|
||||
return (
|
||||
<main className="page-shell wizard-page">
|
||||
<InquiryWizardClient
|
||||
makerId={makerId}
|
||||
sourceType={sourceType}
|
||||
sourceId={sourceId || undefined}
|
||||
makerName={makerName}
|
||||
contextTitle={contextTitle}
|
||||
returnTo={returnTo}
|
||||
/>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user