2022-09-13 07:36:00 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { GlobalStyles as MUIGlobalStyles } from 'tss-react';
|
|
|
|
import { useStyles } from 'tss-react/mui';
|
|
|
|
|
2023-02-17 10:53:14 +00:00
|
|
|
import { commonStyles } from '../constants';
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A component generating all the global styles.
|
|
|
|
*
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
function GlobalStyles() {
|
|
|
|
const { theme } = useStyles();
|
|
|
|
|
|
|
|
return (<MUIGlobalStyles
|
|
|
|
styles = {{
|
2023-02-17 10:53:14 +00:00
|
|
|
...commonStyles(theme)
|
2022-09-13 07:36:00 +00:00
|
|
|
}} />);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default GlobalStyles;
|