Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const defaultImageTransform = () => ({
scale: 1,
translateX: 0,
translateY: 0,
config: { ...config.default, precision: 0.01 }
});
const PageContainer = ({
children,
isOpen,
className,
style,
pageTransitionConfig
}) => {
const defaultTransition = {
from: { transform: 'scale(0.75)', opacity: 0 },
enter: { transform: 'scale(1)', opacity: 1 },
leave: { transform: 'scale(0.75)', opacity: 0 },
config: { ...config.default, mass: 1, tension: 320, friction: 32 }
};
const transitions = useTransition(
isOpen,
null,
merge(defaultTransition, pageTransitionConfig)
);
return transitions.map(
({ item, key, props }) =>
item && (