UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

2 lines (1 loc) 396 B
import e from"../shared/createSharedNavigationFns.js";import o from"./getServerLocale.js";function t(t){const{config:n,...r}=e(o,t);function a(e){return()=>{throw new Error(`\`${e}\` is not supported in Server Components. You can use this hook if you convert the calling component to a Client Component.`)}}return{...r,usePathname:a("usePathname"),useRouter:a("useRouter")}}export{t as default};