import { PropsWithChildren } from 'react';
import './Card.css';

interface CardProps {
    name: string,
}

const Card = ({ name, children }: PropsWithChildren<CardProps>) => (
    <div className="card">
        <h1 className="card__title"> {name} </h1>
        <div className="card__body">
            {children}
        </div>
    </div>
)

export default Card;
