All checks were successful
backend-action / build-image (push) Successful in 1m50s
15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import { db } from "@/src/db";
|
|
import LocationSelector from "../../components/LocationSelector";
|
|
import LocationContextProvider from "@/components/locationContenxt";
|
|
|
|
export default async function Page() {
|
|
let provinces = await db.query.province
|
|
.findMany({ with: { zones: true } })
|
|
.execute();
|
|
return (
|
|
<LocationContextProvider>
|
|
<LocationSelector provinces={provinces} />
|
|
</LocationContextProvider>
|
|
);
|
|
}
|