"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; }) { const zone = useState(undefined); const province = useState(undefined); return ( {children} ); }