import { ref as m, createElementBlock as p, openBlock as s, createElementVNode as n, withDirectives as c, toDisplayString as u, vModelText as d } from "vue";
import "./CreateChat.vue2.js";
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
const f = {
  __name: "CreateChat",
  props: {
    title: {
      type: String,
      required: !0
    }
  },
  emits: ["change"],
  setup(a, { emit: o }) {
    const e = m(""), r = o, l = () => {
      r("change", { name: e.value });
    };
    return (v, t) => (s(), p("div", null, [
      n("h2", null, u(a.title), 1),
      c(n("input", {
        "onUpdate:modelValue": t[0] || (t[0] = (i) => e.value = i),
        type: "text",
        class: "name",
        onInput: l
      }, null, 544), [
        [d, e.value]
      ])
    ]));
  }
}, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
export {
  C as default
};
