import React, { ReactNode, useContext, useState } from "react"; import classNames from "classnames"; import { Box, BoxProps } from "../Box"; import { bem } from "../../utilities/bem"; import { CardGroupContext } from "./CardGroupContext"; import { CardGroup } from "./CardGroup"; const cn = "Card"; export interface BodyProps { as?: any; [key: string]: any; } export interface CardProps extends BoxProps { /** * Value in pixels to be used for the height and width of the entire card (including footer if provided). * NOTE: If rendering more than one card, use the `Card.Group` component for sizing instead of this prop */ cardSize?: number; /** * Content to render in the main body of the card */ bodySlot: ReactNode; /** * Props object to apply to the `bodySlot` container element. By default, the `bodySlot` container renders as a `