import { useEffect, useState } from 'react' import { useFormat, useTranslation } from '@xenia/i18n' import client from '../api/client' import { apiError } from '../api/errors' import db from '../db/posdb' // A table's earlier orders (plan step 4.7): GET /api/tables/{id}/history, never older than // the venue's `history` module allows. The last answer is kept on the phone (`kv` // history: