// src/contexts/ThemeContext.tsx
import { createContext, useContext } from "react";

// src/themes/index.ts
var THEME_CONFIG = {
  classic: "",
  // Base files with no suffix (hero-home.tsx)
  aman: ".aman",
  // Aman Hotels variant files (hero-home.aman.tsx)
  barelux: ".barelux",
  // Bare Lux Studio variant files (hero-home.barelux.tsx)
  balance: ".balance"
  // Balance Aesthetics variant files (hero-home.balance.tsx)
};
function isValidTheme(theme) {
  return theme in THEME_CONFIG;
}

// src/contexts/ThemeContext.tsx
var ThemeContext = createContext({ theme: "classic" });
function ThemeProvider({
  theme,
  children
}) {
  if (!isValidTheme(theme)) {
    console.warn(`Invalid theme "${theme}", falling back to "classic"`);
    theme = "classic";
  }
  return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: { theme } }, children);
}
function useTheme() {
  return useContext(ThemeContext);
}
export {
  ThemeProvider,
  useTheme
};
//# sourceMappingURL=index.js.map