function buildAllowedPhrase(allowsOpt) {
  const phrases = []
  if (allowsOpt.scriptSetup) {
    phrases.push('`<script setup>`')
  }
  if (allowsOpt.composition) {
    phrases.push('Composition API')
  }
  if (allowsOpt.compositionVue2) {
    phrases.push('Composition API (Vue 2)')
  }
  if (allowsOpt.options) {
    phrases.push('Options API')
  }
  return phrases.length > 2
    ? `${phrases.slice(0, -1).join(', ')} or ${phrases.slice(-1)[0]}`
    : phrases.join(' or ')
}
@param {object} allowsOpt
@param {boolean} [allowsOpt.scriptSetup]
@param {boolean} [allowsOpt.composition]
@param {boolean} [allowsOpt.compositionVue2]
@param {boolean} [allowsOpt.options]