sendou.ink/components/common/Section.tsx
2021-01-30 13:04:10 +02:00

19 lines
399 B
TypeScript

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