import { gsap } from "gsap"; import React, { useRef, useEffect, useCallback, useState } from "react"; import "./magic-bento.css"; export interface BentoCardProps { color?: string; title?: React.ReactNode; description?: React.ReactNode; label?: React.ReactNode; textAutoHide?: boolean; disableAnimations?: boolean; } export interface BentoProps { textAutoHide?: boolean; enableStars?: boolean; enableSpotlight?: boolean; enableBorderGlow?: boolean; disableAnimations?: boolean; spotlightRadius?: number; particleCount?: number; enableTilt?: boolean; glowColor?: string; clickEffect?: boolean; enableMagnetism?: boolean; } const DEFAULT_PARTICLE_COUNT = 12; const DEFAULT_SPOTLIGHT_RADIUS = 300; const DEFAULT_GLOW_COLOR = "132, 0, 255"; const MOBILE_BREAKPOINT = 768; const cardData: BentoCardProps[] = [ { color: "#0a0015", title: "Long/Short-term Memory", description: (
{card.description}