import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, normalizeStyle, normalizeClass, renderSlot } from 'vue';
import { statusProps } from './status.mjs';

const _hoisted_1 = { class: "gm-flex gm-items-center" };
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmStatus"
  },
  __name: "status",
  props: statusProps,
  setup(__props) {
    const props = __props;
    const doitStyle = computed(() => {
      if (props.doitColor) {
        return {
          background: props.doitColor
        };
      }
      return {};
    });
    const textStyle = computed(() => {
      if (props.textColor) {
        return {
          color: props.textColor
        };
      }
      return {};
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode(
          "i",
          {
            class: normalizeClass(["gm-mr-2 gm-inline-block gm-h-1 gm-w-1 gm-rounded-full gm-align-middle", {
              "gm-bg-primary": props.type == "success",
              "gm-bg-error": props.type == "error",
              "gm-bg-warning": props.type == "warning"
            }]),
            style: normalizeStyle(doitStyle.value)
          },
          null,
          6
          /* CLASS, STYLE */
        ),
        createElementVNode(
          "div",
          {
            class: "gm-flex-1 gm-align-middle",
            style: normalizeStyle(textStyle.value)
          },
          [
            renderSlot(_ctx.$slots, "default")
          ],
          4
          /* STYLE */
        )
      ]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=status.vue2.mjs.map
