import { createContext, useContext } from 'react'

export interface AppContextType {
  theme: 'light' | 'dark'
  toggleTheme: () => void
}

const AppContext = createContext<AppContextType>({
  theme: 'light',
  toggleTheme: () => {}
})

export const useAppContext = () => useContext(AppContext)

export default AppContext
