import style from "./style.module.css";

export default function CardHeader({ icon, content, active = false }) {
    let containerClass = style.container;
    if (active) {
        containerClass += " " + style.active;
    }
    return (
        <div className={containerClass}>
            <div className={style.title}>
                <div className={style.icon}>{icon}</div>
                <div className={style.content}>{content}</div>
            </div>
        </div>
    );
}
