import {WorldProps} from "@/lib/models/World";
import {createContext, Dispatch, SetStateAction} from "react";

export interface WorldContextProps {
    worlds: WorldProps[];
    setWorlds: Dispatch<SetStateAction<WorldProps[]>>;
    selectedWorldIndex: number;
    isSeriesMode?: boolean;
}

export const WorldContext = createContext<WorldContextProps>({} as WorldContextProps);
