35 lines
672 B
TypeScript
35 lines
672 B
TypeScript
"use client";
|
|
|
|
import { FC, PropsWithChildren } from "react";
|
|
import { Box } from "@mui/material";
|
|
import { useAppContext } from "../../../apps/leafcutter/app/_components/AppProvider";
|
|
|
|
type AboutBoxProps = PropsWithChildren<{
|
|
backgroundColor: string;
|
|
}>;
|
|
|
|
export const AboutBox: FC<AboutBoxProps> = ({
|
|
backgroundColor,
|
|
children,
|
|
}: any) => {
|
|
const {
|
|
colors: { white },
|
|
} = useAppContext();
|
|
|
|
return (
|
|
<Box
|
|
sx={{
|
|
width: "100%",
|
|
backgroundColor,
|
|
color: white,
|
|
p: 4,
|
|
borderRadius: "10px",
|
|
mt: "66px",
|
|
mb: "22px",
|
|
textAlign: "center",
|
|
}}
|
|
>
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|