mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-24 13:59:38 -05:00
25 lines
567 B
TypeScript
25 lines
567 B
TypeScript
import { SendouDialog } from "~/components/elements/Dialog";
|
|
import { SendouForm } from "~/form/SendouForm";
|
|
import { pickMapFormSchema } from "../scrims-schemas";
|
|
|
|
export function PickMapDialog({
|
|
trigger,
|
|
heading,
|
|
}: {
|
|
trigger: React.ReactNode;
|
|
heading: string;
|
|
}) {
|
|
return (
|
|
<SendouDialog heading={heading} trigger={trigger}>
|
|
<SendouForm schema={pickMapFormSchema} defaultValues={{ mode: "SZ" }}>
|
|
{({ FormField }) => (
|
|
<>
|
|
<FormField name="mode" />
|
|
<FormField name="stageId" />
|
|
</>
|
|
)}
|
|
</SendouForm>
|
|
</SendouDialog>
|
|
);
|
|
}
|