mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
* fix several lint warnings, add missing types, cleanup * fix EnumChangefreq issue * better utilization of EnumChangefreq type * update test snapshot
24 lines
774 B
TypeScript
24 lines
774 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import ThemeProvider from '@theme/ThemeProvider';
|
|
import UserPreferencesProvider from '@theme/UserPreferencesProvider';
|
|
import {DocsPreferredVersionContextProvider} from '@docusaurus/theme-common';
|
|
import {Props} from '@theme/LayoutProviders';
|
|
|
|
export default function LayoutProviders({children}: Props): JSX.Element {
|
|
return (
|
|
<ThemeProvider>
|
|
<UserPreferencesProvider>
|
|
<DocsPreferredVersionContextProvider>
|
|
{children}
|
|
</DocsPreferredVersionContextProvider>
|
|
</UserPreferencesProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|