import React, { FunctionComponent, HTMLAttributes } from 'react'; import { classNames } from '../../lib/classNames'; import { getClassName } from '../../helpers/getClassName'; import { usePlatform } from '../../hooks/usePlatform'; import { withAdaptivity, AdaptivityProps } from '../../hoc/withAdaptivity'; export interface CardGridProps extends HTMLAttributes, AdaptivityProps { size: 's' | 'm' | 'l'; } const CardGrid: FunctionComponent = ({ children, className, size, sizeX, ...restProps }: CardGridProps) => { const platform = usePlatform(); return (
{children}
); }; CardGrid.defaultProps = { size: 's', }; export default withAdaptivity(CardGrid, { sizeX: true });