Files
aso/frontend/client-portal/src/components/animate/MotionLazyContainer.tsx
Linksehat Staging Server ce024c2bcd merge
2023-05-08 08:50:15 +07:00

21 lines
548 B
TypeScript
Executable File

import { ReactNode } from 'react';
import { LazyMotion } from 'framer-motion';
import features from "./features";
// ----------------------------------------------------------------------
// eslint-disable-next-line import/extensions
// const loadFeatures = () => import('~/src/components/animate/features.js').then((res) => res.default);
type Props = {
children: ReactNode;
};
export default function MotionLazyContainer({ children }: Props) {
return (
<LazyMotion strict features={features}>
{children}
</LazyMotion>
);
}