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

const KunStarRate = ({ message }): Component => (
  <host shadowDom>
    <style>{style}</style>
    <div>
      <span role="img" aria-label="happy">
        👋
        {message}
      </span>
    </div>
  </host>
);

KunStarRate.props = {
  message: {
    type: String,
    value: "kun-star-rate",
    reflect: true,
    event: {
      type: "changeMessage",
    },
  },
};

export default getComponentOrDefine("kun-star-rate", KunStarRate);
