import React from 'react'; import Link, { LinkProps } from 'Components/Link/Link'; import styles from './Card.css'; interface CardProps extends Pick { // TODO: Consider using different properties for classname depending if it's overlaying content or not className?: string; overlayClassName?: string; overlayContent?: boolean; children: React.ReactNode; } function Card(props: CardProps) { const { className = styles.card, overlayClassName = styles.overlay, overlayContent = false, children, onPress, } = props; if (overlayContent) { return (
{children}
); } return ( {children} ); } export default Card;