// src/composables/counter.js
import { computed, readonly, ref } from 'vue';
const count = ref(0);
const next = computed(() => count.value + 1);
const plusOne = () => { count.value += 1 };
export function useCounter() {
return {
count: readonly(count),
next,
plusOne,
};
}