Files
SSA-Admin-Panel/src/components/MainFrame.tsx

31 lines
731 B
TypeScript
Raw Normal View History

2025-01-15 12:38:29 +05:30
import { Box, Text, VStack } from "@chakra-ui/react"
import { motion } from "framer-motion"
import React, { FC } from "react"
import { OPACITY_ON_LOAD } from "../Layouts/animations"
// ✅ Wrap Chakra components with Framer Motion
const MotionVStack = motion(VStack)
interface MainFrameProps {
children: React.ReactNode
title?: string
}
const MainFrame: FC<MainFrameProps> = ({ children, title }) => {
return (
2025-01-15 16:56:25 +05:30
<MotionVStack {...OPACITY_ON_LOAD} w="100%" h="94%" p={4} pb={0} >
2025-01-15 12:38:29 +05:30
<Box
w="100%"
h="97%"
2025-01-15 16:56:25 +05:30
bg="#ffffff"
2025-01-15 12:38:29 +05:30
rounded="md"
2025-01-15 16:56:25 +05:30
boxShadow={'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px'}
2025-01-15 12:38:29 +05:30
>
{children}
</Box>
</MotionVStack>
)
}
export default MainFrame