"use client"; import { Dispatch, ReactNode, SetStateAction, createContext, useState, } from "react"; type LocationContextType = { zone: [number | undefined, Dispatch>]; province: [number | undefined, Dispatch>]; }; export const LocationContext = createContext( undefined ); export default function LocationContextProvider({ children, }: { children?: ReactNode; }) { let zone = useState(undefined); let province = useState(undefined); return ( {children} ); }