import React from "react";
import { CaretUpIcon } from "@phosphor-icons/react";
import * as styles from "./styles";
export function Header({ onClick, }) {
    if (typeof onClick === "undefined") {
        return (React.createElement("div", { className: styles.container, "data-testid": "header-button" },
            React.createElement(CaretUpIcon, { className: styles.caret, weight: "bold" })));
    }
    return (React.createElement("button", { className: styles.container, onClick: onClick, "data-testid": "header-button" },
        React.createElement(CaretUpIcon, { className: styles.caret, weight: "bold" })));
}
//# sourceMappingURL=index.js.map