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

const KunConfirmButton = ({ message }): Component => (
  <host shadowDom>
    <style>{style}</style>
    <h1>
      {" "}
      {message}
    </h1>
  </host>
);

KunConfirmButton.props = {
  message: {
    type: String,
    value: "kun-confirm-button",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-confirm-button", KunConfirmButton);
