()
| 3 | |
| 4 | // This hook is used to determine the direction of the language |
| 5 | export function useLanguageDirection() { |
| 6 | const { query } = useRouter() |
| 7 | const isRtl = rtlSupported.includes(query.lang as string) |
| 8 | |
| 9 | return isRtl ? 'rtl' : 'ltr' |
| 10 | } |
no outgoing calls
no test coverage detected