diff --git a/packages/actify/src/components/Carousel/CarouselContent.tsx b/packages/actify/src/components/Carousel/CarouselContent.tsx index b2cc34d..1ee0ca5 100644 --- a/packages/actify/src/components/Carousel/CarouselContent.tsx +++ b/packages/actify/src/components/Carousel/CarouselContent.tsx @@ -3,7 +3,6 @@ import { AnimatePresence, motion } from 'framer-motion' import React, { Children, isValidElement, useEffect } from 'react' -import clsx from 'clsx' import { useCarousel } from './CarouselContext' import { wrap } from 'popmotion' @@ -52,11 +51,12 @@ const CarouselContent = ({ children }: React.ComponentProps<'div'>) => { {Children.map(children, (child, index) => { if (isValidElement(child)) { + // @ts-expect-error const MotionComponent = motion(child.type) if (current == index) { return (