* Update ESLint and plugins * Move most channels-specific ESLint configuration into ESLint plugin * Add ESLint to types and client packages * Add ESLint to components package
15 строки
446 B
TypeScript
15 строки
446 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import type {ReactNode} from 'react';
|
|
import React from 'react';
|
|
import {IntlProvider, createIntl} from 'react-intl';
|
|
|
|
export const defaultIntl = createIntl({
|
|
locale: 'en',
|
|
defaultLocale: 'en',
|
|
messages: {},
|
|
});
|
|
|
|
export const wrapIntl = (children?: ReactNode) => <IntlProvider {...defaultIntl}>{children}</IntlProvider>;
|