"use server";
import { db } from "~/server/db";
import CreateRegionForm from "./CreateRegionForm";

export default async function CreateRegion() {
  const allCountries = await db.query.countries.findMany();
  return (
    <>
      <h1 className="pt-4 text-2xl">Fill the form to create a new region</h1>
      <CreateRegionForm countries={allCountries} />
    </>
  );
}
