mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
10 lines
317 B
JavaScript
10 lines
317 B
JavaScript
import React from 'react';
|
|
import { ThemeProvider } from 'styled-components';
|
|
import { useAppIntlContext } from '../AppIntlProvider';
|
|
|
|
export function DashboardThemeProvider({ children }) {
|
|
const { direction } = useAppIntlContext();
|
|
|
|
return <ThemeProvider theme={{ dir: direction }}>{children}</ThemeProvider>;
|
|
}
|