15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
import { ReactNode } from "react";
|
|
import BackroundImg from "../assets/img/background.png";
|
|
|
|
export default function MainBody({ children }: { children?: ReactNode }) {
|
|
return (
|
|
<div
|
|
className="bg-background text-white bg-repeat-y bg-cover relative"
|
|
style={{
|
|
backgroundImage: `url(${BackroundImg})`
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
} |