import { computed, ComputedRef, Ref } from "vue";

export function useConditionalPlural(list: Ref<any[]> | ComputedRef<any[]>): ComputedRef<string> {
    const plural = computed(() => (list.value || []).length === 1 ? '' : 's')
    return plural
}