import { Context, createContext } from "react";
import { THEME } from "../types";

type ThemeContextType = THEME | undefined;

const defaultContext: ThemeContextType = THEME.PRODUCT;

export const ThemeContext: Context<ThemeContextType> = createContext<ThemeContextType>(
  defaultContext,
);
