import {getId} from '../utils' import {computed, type ComputedRef, type Ref} from 'vue' /** * @param id * @param suffix * @returns */ export default (id?: Ref, suffix?: string): ComputedRef => computed(() => id?.value || getId(suffix))