Files
Homarr/components/modules/moduleWrapper.tsx
Aj - Thomas a0d86e2914 Linting and formatting
CRLF > LF is REALLY annoying
2022-05-10 19:03:41 +02:00

21 lines
529 B
TypeScript

import { Card, useMantineTheme } from '@mantine/core';
import { IModule } from './modules';
export default function ModuleWrapper(props: any) {
const { module }: { module: IModule } = props;
const theme = useMantineTheme();
return (
<Card
mx="sm"
radius="lg"
shadow="sm"
style={{
// Make background color of the card depend on the theme
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
}}
>
<module.component />
</Card>
);
}