import { ThemeContext } from "@/src/context/ThemeContext"
import { useContext } from "react"

export const useTheme = () => {
  const context = useContext(ThemeContext)
  if (!context) {
    throw new Error("useTheme must be used within a ThemeProvider")
  }
  return context
}