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

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

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

export default getComponentOrDefine("kun-message-nofication", KunMessageNofication);
