"use client"; import React, { useCallback } from "react"; import { cardClickableMixin, cardMixin } from "../styles"; import { cls } from "../util"; type CardProps = { children: React.ReactNode; style?: React.CSSProperties; onClick?: (e?: React.MouseEvent) => void; className?: string; }; const Card = React.forwardRef(({ children, className, onClick, style, ...props }, ref) => { const onKeyPress = useCallback((e: React.KeyboardEvent) => { if (e.key === "Enter" || e.key === " ") { onClick?.(); } }, [onClick]); return (
{children}
); }); export { Card };