link-stack/apps/leafcutter/components/AboutBox.tsx

31 lines
572 B
TypeScript
Raw Normal View History

2023-02-13 13:46:56 +00:00
import { FC } from "react";
import { Box } from "@mui/material";
import { useAppContext } from "./AppProvider";
interface AboutBoxProps {
backgroundColor: string;
}
export const AboutBox: FC<AboutBoxProps> = ({ backgroundColor, children }) => {
const {
colors: { white },
} = useAppContext();
return (
<Box
sx={{
width: "100%",
backgroundColor,
color: white,
p: 4,
borderRadius: "10px",
mt: "66px",
mb: "22px",
textAlign: "center",
}}
>
{children}
</Box>
);
};