import { MotionEffect } from '@/registry/effects/motion-effect'; import { SectionWrapper } from './section-wrapper'; import { AnimatedSpan, Terminal, TypingAnimation, } from '@workspace/ui/components/magicui/terminal'; import { useInView, motion } from 'motion/react'; import { useEffect, useRef, useState } from 'react'; import { File, Files, Folder } from '@/components/animate-ui/files'; export const DistributionSection = () => { const localRef = useRef(null); const isInView = useInView(localRef, { once: true, margin: '50px', }); const [openStructureFile, setOpenStructureFile] = useState(false); useEffect(() => { if (!isInView) return; const interval = setInterval(() => setOpenStructureFile(true), 6000); return () => clearInterval(interval); }, [isInView]); return ( Not a library but a{' '} component distribution } description="Animate UI is not a library, it's a component distribution system. You can use the components in your project simply by installing them with the shadcn/ui CLI, or by copying the code and pasting it into your project." color="text-emerald-500" backgroundColor="bg-emerald-500/10 hover:bg-emerald-500/20" >
{isInView && ( <> > pnpm dlx shadcn@latest add "https://animate-ui.com/r/counter" ✔ Checking registry. ✔ Installing dependencies. ✔ Created 1 file: {!openStructureFile ? (   - components/animate-ui/counter.tsx ) : (   - components/animate-ui/counter.tsx )} {openStructureFile && ( )} )}
); };