chore: transfer repo
This commit is contained in:
18
components/i18n/IntlProvider.tsx
Normal file
18
components/i18n/IntlProvider.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client';
|
||||
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
type IntlProviderProps = {
|
||||
locale: string;
|
||||
children: ReactNode;
|
||||
messages: any;
|
||||
};
|
||||
|
||||
export function IntlProvider({ locale, messages, children }: IntlProviderProps) {
|
||||
return (
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
{children}
|
||||
</NextIntlClientProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user