/**
 * useDirection — system-i18n.
 *
 * Returns the CSS writing direction ('rtl' | 'ltr') for the given locale.
 * Pure function — no side effects, no DOM mutations. Call this to get the
 * direction value; LocaleProvider applies it to the document root.
 */
import type { Locale } from '@zync/types'

export function useDirection(locale: Locale): 'rtl' | 'ltr' {
  return locale === 'he' ? 'rtl' : 'ltr'
}
