sendou.ink/components/common/Section.tsx
2020-11-08 12:28:41 +02:00

18 lines
381 B
TypeScript

import { Box, BoxProps } from "@chakra-ui/core";
import { useMyTheme } from "lib/useMyTheme";
const Section: React.FC<BoxProps> = (props) => {
const { secondaryBgColor } = useMyTheme();
return (
<Box
bg={secondaryBgColor}
boxShadow="0px 0px 16px 6px rgba(0,0,0,0.1)"
p="1.5rem"
rounded="lg"
{...props}
/>
);
};
export default Section;