import React from "react";
import * as styles from "./styles";
export function Container({ scoreKey, onClick, children, }) {
    if (typeof onClick === "undefined") {
        return (React.createElement("div", { "data-testid": `score-card-container-${scoreKey}`, className: styles.container }, children));
    }
    return (React.createElement("button", { "data-testid": `score-card-container-${scoreKey}`, className: styles.container, "data-expandable": true, onClick: () => onClick(scoreKey) }, children));
}
//# sourceMappingURL=index.js.map