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

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

KunIconAddCollect.props = {
  message: {
    type: String,
    value: "kun-icon-add-collect",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-icon-add-collect", KunIconAddCollect);
