import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { getTheme } from "../utils/theme/getTheme";
import { LIGHT_THEME } from "../Pallette/themes";
import { defaultThemeCluster } from "./theme";
var COMPONENT_NAME = "cluster";
export var ClusterStyled = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        defaultTheme: defaultThemeCluster,
        componentName: COMPONENT_NAME
    })
}); })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n  position: relative;\n  border-radius: 8px 8px 8px 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 40px;\n  width: 45px;\n  flex-direction: column;\n  padding: 4px;\n  user-select: none;\n\n  ", "\n\n  &:hover {\n    ", "\n  }\n"], ["\n  position: relative;\n  border-radius: 8px 8px 8px 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 40px;\n  width: 45px;\n  flex-direction: column;\n  padding: 4px;\n  user-select: none;\n\n  ", "\n\n  &:hover {\n    ", "\n  }\n"])), function (_a) {
    var isDisabled = _a.isDisabled, theme = _a.theme, isPressed = _a.isPressed;
    if (isDisabled) {
        return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n        pointer-events: none;\n        background: ", ";\n        color: ", ";\n      "], ["\n        pointer-events: none;\n        background: ", ";\n        color: ", ";\n      "])), theme.components.cluster.backgroundDisabled, theme.components.cluster.colorDisabled);
    }
    else if (isPressed) {
        return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n        background: ", ";\n        color: ", ";\n      "], ["\n        background: ", ";\n        color: ", ";\n      "])), theme.components.cluster.backgroundPressed, theme.components.cluster.colorPressed);
    }
    return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n      background: ", ";\n      color: ", ";\n    "], ["\n      background: ", ";\n      color: ", ";\n    "])), theme.components.cluster.backgroundDefault, theme.components.cluster.colorDefault);
}, function (_a) {
    var theme = _a.theme, isDisabled = _a.isDisabled;
    return !isDisabled && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n        background: ", ";\n        color: ", ";\n        cursor: pointer;\n      "], ["\n        background: ", ";\n        color: ", ";\n        cursor: pointer;\n      "])), theme.components.cluster.backgroundHover, theme.components.cluster.colorHover);
});
ClusterStyled.defaultProps = {
    theme: LIGHT_THEME
};
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
