import { h, Component } from "atomico";
import style from "./kun-loading.css";
import { getComponentOrDefine } from "../../hooks/aync-hook/redirect";

const KunLoading = () => (
  <host shadowDom>
    <style>{style}</style>
    <div className="loading">马上到....</div>
  </host>
);

KunLoading.props = {
  message: {
    type: String,
    value: "kun-loading",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-loading", KunLoading);
