// @flow
import type { ThemeProps } from '../../../types';

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

export const getTopBorderRadius = ({
  theme,
  flatTopCorners,
}: {
  ...ThemeProps,
  flatTopCorners: boolean,
}) => (flatTopCorners ? 0 : theme.cardBorderRadius);
