import { h, c } from "atomico";
import style from "./kun-page-loader.scss";
import { getComponentOrDefine } from "../../hooks/aync-hook/redirect";

const KunPageLoader = () => (
  <host>
    <style>{style}</style>
    <div class="spinner" />
  </host>
);

KunPageLoader.props = {
  message: {
    type: String,
    value: "kun-page-loader",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-page-loader", KunPageLoader);
