import {WorldProps} from "@/lib/types/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>({
    worlds: [],
    setWorlds: (): void => {
    },
    selectedWorldIndex: 0,
    isSeriesMode: false,
});
