"use client"; import { memo } from "react"; import { CardView } from "./Card.view"; import type { CardProps } from "./Card.types"; const CardContainer = memo( ({ label, supportText = "", recommended = false, selected = false, orientation = "horizontal", showInfoIcon = false, id, className = "", onClick, }) => { const handleClick = () => { if (onClick) onClick(); }; const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === "Enter" || event.key === " ") { event.preventDefault(); handleClick(); } }; return ( ); }, ); CardContainer.displayName = "Card"; export default CardContainer;