"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var themed_components_1 = __importDefault(require("@monstrosity/utilities/themed-components"));
var core_1 = require("../../core");
var Layout = themed_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tflex: 1;\n\tpadding: 0.5rem;\n\n\tcolor: ", ";\n"], ["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tflex: 1;\n\tpadding: 0.5rem;\n\n\tcolor: ", ";\n"])), function (_a) {
    var theme = _a.theme, isColourful = _a.isColourful;
    return isColourful ? theme.style.colour.background : theme.style.colour.base;
});
var Align = themed_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tmargin-right: auto;\n\tmargin-left: 1rem;\n"], ["\n\tmargin-right: auto;\n\tmargin-left: 1rem;\n"])));
exports.UserSelect = function (_a) {
    var label = _a.label, imageSrc = _a.imageSrc, size = _a.size, isColourful = _a.isColourful;
    return (react_1.default.createElement(Layout, { isColourful: isColourful },
        react_1.default.createElement(core_1.Avatar, { imageSrc: imageSrc, size: size }),
        react_1.default.createElement(Align, null, label)));
};
exports.Oldie = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Oldie }, props)); };
exports.Man = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Man }, props)); };
exports.Nerd = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Nerd }, props)); };
exports.Lady = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Lady }, props)); };
exports.Guy = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Guy }, props)); };
exports.Boof = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Boof }, props)); };
exports.Boy = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Boy }, props)); };
exports.Goth = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Goth }, props)); };
exports.Girl = function (props) { return react_1.default.createElement(exports.UserSelect, __assign({ imageSrc: core_1.AvatarSourceSvgs.Girl }, props)); };
var templateObject_1, templateObject_2;
