Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ParallaxCarousel = () => {
const classes = useStyles();
const arrowStyles = useSimpleArrowStyles();
const createStyle = (slideIndex, fineIndex) => {
const diff = slideIndex - fineIndex;
if (Math.abs(diff) > 1) return {};
return {
transform: `rotateY(${(-diff + 1) * 45}deg)`,
};
};
// eslint-disable-next-line react/prop-types
const renderElements = ({ index, onChangeIndex }) => (
<>
<button disabled="{index"> onChangeIndex(index - 1)}
></button>
const SimpleArrow = () => {
const classes = useSimpleArrowStyles();
const gutterStyles = usePushingGutter({ firstExcluded: true, space: 2 });
return (
<button>
</button>
<button>
</button>
);
};