import { ref } from 'vue'

const _pending = ref('')

export function useQuoteReply() {
  function requestQuote(text) { _pending.value = text }
  function consumeQuote() {
    const t = _pending.value
    _pending.value = ''
    return t
  }
  return { pendingQuote: _pending, requestQuote, consumeQuote }
}
