import { h } from "atomico";
import { getComponentOrDefine } from "../../hooks/aync-hook/redirect";

const KunPost = ({ message }): Vnode => (
  <host>
    <h1>
      kun post
      {message}
    </h1>
  </host>
);

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

export default getComponentOrDefine("kun-post", KunPost);
