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

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

KunMenuList.props = {
  message: {
    type: String,
    value: "kun-menu-list",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-menu-list", KunMenuList);
