import React, { HTMLProps } from "react"; import { StyledCard } from "./style"; interface CardProps { children: React.ReactNode | React.ReactNode[]; cardProps?: Omit, "ref" | "as">; } export const Card: React.FC = ({ children, cardProps }) => { return ( {Array.isArray(children) ? children.map(child => child) : children} ); };