import { useLocalSearchParams } from "expo-router";
import { TownActivitiesPage } from "../../../../../src/place/screens/town_activities_page";

export default function TownSelectionScreen() {
    const { stateId, townId } = useLocalSearchParams<{stateId: string, townId: string}>();
    if (!stateId || !townId) {
        throw new Error("stateId and townId are required");
    }
    return (
        <TownActivitiesPage stateId={+stateId} townId={+townId}/>
    );
}