panel component

This commit is contained in:
BFlat committed 2023-08-30 08:08:03 +07:00
1 parent 466db5454f
commit 90db3c4b3e
1 file changed
+18
@@ -0,0 +1,18 @@
import React from "react";
import { motion } from "framer-motion";
import { panel } from "data/animation";
interface PanelProps {
children: React.ReactNode;
padding?: boolean;
}
export default function Panel(props: PanelProps) {
return (
<motion.div className="container-panel" variants={panel}>
<div className={`panel ${props.padding ? "p-3 py-4 p-md-4" : ""}`}>
{props.children}
</div>
</motion.div>
);
}