"use client"; import React from "react"; import { motion } from "framer-motion"; interface CubeProps { title: string; descriptionTitle: string; description: string; isActive: boolean; index: number; onHover: () => void; onLeave: () => void; onClick: () => void; } const CubeSvg: React.FC & { index: number }> = ({ index, ...props }) => ( ); export function Cube({ title, descriptionTitle, description, isActive, index, onHover, onLeave, onClick }: CubeProps) { return (
{/* SVG Cube */} {/* Title overlay */}

{title}

{/* Description with arrow line - Desktop */} {isActive && ( {/* Arrow line */} {/* Description text */}

{descriptionTitle}

{description}

)} {/* Description for Mobile - Below cube */}
); }