"use client"; import { memo } from "react"; import { IconView } from "./Icon.view"; import type { IconProps } from "./Icon.types"; const IconContainer = memo( ({ icon, title, description, className = "", onClick }) => { const handleClick = () => { if (onClick) onClick(); }; const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === "Enter" || event.key === " ") { event.preventDefault(); handleClick(); } }; return ( ); }, ); IconContainer.displayName = "Icon"; export default IconContainer;