import * as React from "react" import { motion } from "framer-motion" import { cn } from "@/lib/utils" import { LucideIcon } from "lucide-react" interface DockProps { className?: string items: { icon: LucideIcon label: string onClick?: () => void }[] } interface DockIconButtonProps { icon: LucideIcon label: string onClick?: () => void className?: string } const floatingAnimation = { initial: { x: 0 }, animate: { x: [-2, 2, -2], transition: { duration: 4, repeat: Infinity, ease: "easeInOut" as const } } } const DockIconButton = React.forwardRef( ({ icon: Icon, label, onClick, className }, ref) => { return ( {label} ) } ) DockIconButton.displayName = "DockIconButton" const Dock = React.forwardRef( ({ items, className }, ref) => { return (
{items.map((item) => ( ))}
) } ) Dock.displayName = "Dock" export { Dock }