sendou.ink/components/Section.tsx
2020-10-18 13:34:19 +03: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;