// @flow
import type { ThemeProps } from '../../../types';
import type { SpaceProps } from '../../../mixins/spacing';
import { getSpacingRules } from '../../../mixins/spacing';

export const getCardSpacingRules = ({
  theme,
  spacing,
}: ThemeProps & SpaceProps) =>
  getSpacingRules({ theme, spacing: spacing || 'p5' });

export const getCardBorderRadius = ({ theme }: ThemeProps) =>
  theme.cardBorderRadius;
