'use client'

import { useTheme } from '@/providers/Theme'

export function useThemeMode() {
  const { theme, setTheme } = useTheme()

  const isDark = theme !== 'light'
  const toggle = () => setTheme(isDark ? 'light' : 'dark')

  return { isDark, toggle }
}