import { useProp, h } from 'atomico';
import { Option } from 'funfix';
import { g as getComponentOrDefine } from './chunks/65ef80fe.js';
import './kun-icon.js';
import './chunks/a234fa33.js';
import './kun-image-or-default.js';
import '@caedman/kit/dist/use-stylesheet';
import 'lazyload-image';
import './kun-image.js';
import 'dayjs';
import { getKunImageUrl } from './kun-chat-message.js';

var style = ":host {\n}\n";

const _jsxFileName = "/Users/rang/rang/frond_ng/packages/six/src/components/kun-series-member/kun-series-member.tsx";
const KunSeriesMember = () => {
  const [userName] = useProp("userName");
  const [userAvatar] = useProp("userAvatar");
  const userNameChecked = Option.of(userName).getOrElse("用户");

  return (
    h('host', {__self: undefined, __source: {fileName: _jsxFileName, lineNumber: 16}}
      , h('style', {__self: undefined, __source: {fileName: _jsxFileName, lineNumber: 17}}, style)
      , h('div', { class: "flex justify-start my-4 items-center"   , __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 18}}
        , h('kun-image-or-default', { class: "mr-4", url: getKunImageUrl(userAvatar), width: 65, height: 65, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 19}} )
        , h('div', { class: "flex flex-col justify-start self-start mt-4"    , __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 20}}
          , userNameChecked
        )
      )
    )
  );
};

KunSeriesMember.props = {
  userName: {
    type: String,
  },
  userAvatar: {
    type: String,
  },
};

var kunSeriesMember = getComponentOrDefine("kun-series-member", KunSeriesMember);

export default kunSeriesMember;
