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

33 lines
763 B
TypeScript
Raw Normal View History

2025-02-10 12:06:34 +05:30
import { Box, VStack } from "@chakra-ui/react"
2025-01-15 12:38:29 +05:30
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
}
2025-02-10 12:06:34 +05:30
const MainFrame: FC<MainFrameProps> = ({ children }) => {
2025-01-15 12:38:29 +05:30
return (
2025-02-04 13:56:43 +05:30
<MotionVStack {...OPACITY_ON_LOAD} w="100%" h="90%" p={0} pb={0}>
2025-01-15 12:38:29 +05:30
<Box
w="100%"
2025-02-04 13:56:43 +05:30
h="100%"
2025-01-15 16:56:25 +05:30
bg="#ffffff"
2025-02-04 13:56:43 +05:30
overflow={'scroll'}
// rounded="md"
2025-01-15 16:56:25 +05:30
boxShadow={'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px'}
2025-02-04 13:56:43 +05:30
pt={3}
2025-01-15 12:38:29 +05:30
>
{children}
</Box>
</MotionVStack>
)
}
export default MainFrame