Refactor: switch data fetching from server side to client

This commit is contained in:
Aaron William Po
2023-05-09 00:53:15 -04:00
parent d9236e8fde
commit 3e1172e440
9 changed files with 188 additions and 61 deletions

View File

@@ -0,0 +1,14 @@
import { z } from "zod";
const BreweryPostMapQueryResult = z.object({
location: z.object({
coordinates: z.array(z.number()),
city: z.string(),
country: z.string().nullable(),
stateOrProvince: z.string().nullable(),
}),
id: z.string(),
name: z.string(),
});
export default BreweryPostMapQueryResult;