import { ref as l } from "vue";
const e = l([]), a = (n) => {
  const t = l(0), u = e.value.find(({ id: o }) => o == n);
  return u != null ? t.value = e.value.indexOf(u) : (e.value.push({
    id: n,
    theme: ""
  }), t.value = e.value.length - 1), { getTheme: () => e.value[t.value] };
};
export {
  a as useTheme
};
