import React from "react";
import { SpinnerGapIcon } from "@phosphor-icons/react";
import * as styles from "./styles";
import { ScoreIcon } from "~/components/ScoreIcon";
export function Icon({ isLoading = false, score, }) {
    return (React.createElement("div", { className: styles.container },
        React.createElement("div", { className: styles.content },
            isLoading && React.createElement(SpinnerGapIcon, { className: styles.icon }),
            !isLoading && score && (React.createElement(ScoreIcon, { score: score, className: styles.icon })))));
}
//# sourceMappingURL=index.js.map