panel component

This commit is contained in:
BFlat committed 2023-07-31 14:36:04 +07:00
1 parent 3a6c28bf88
commit a18bbab405
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>
);
}