import React from 'react'; import { BoxDivProps, SilkeBox } from '../silke-box'; import styles from './silke-card.scss'; import { ButtonContext } from '../silke-button'; type SilkeCardGridProps = { children: React.ReactNode; small?: boolean; loading?: boolean; } & Omit; export function SilkeCardGrid({ loading, children, small, className, style = {}, ...rest }: SilkeCardGridProps) { let cl = styles.grid; if (className) cl += ' ' + className; if (small) cl += ' ' + styles.small; return ( {loading ? [1, 2, 3].map((key) => ) : children} ); } export const SilkeSkeletonCard = React.forwardRef((props, ref) => { return (
); }); SilkeSkeletonCard.displayName = 'SilkeSkeletonCard';