Zone creation UI preparation

This commit is contained in:
Timothy Armes
2024-10-21 15:19:28 +02:00
parent 1aba39b0e9
commit 6a3b58f02d
12 changed files with 442 additions and 42 deletions
@@ -0,0 +1,30 @@
"use client";
import { FeatureCollection } from "geojson";
import { useTranslations } from "next-intl";
import { ZoneForm } from "../components/ZoneForm";
type ZoneFormValues = {
features: FeatureCollection;
};
const CreateZone = () => {
const t = useTranslations("Zones");
const onSubmit = async (data: ZoneFormValues) => {
try {
console.log(data);
} catch (err: unknown) {
console.log(err);
}
};
return (
<div className="mx-auto max-w-screen-md px-4 py-8 lg:py-16">
<ZoneForm />
</div>
);
};
export default CreateZone;