mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-12 22:11:06 -05:00
19 lines
401 B
TypeScript
19 lines
401 B
TypeScript
import { Box, BoxProps } from "@chakra-ui/react";
|
|
import { useMyTheme } from "lib/useMyTheme";
|
|
|
|
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;
|