// Tickets that didn't print, on the phone (plan step 6.10): opened from the red printer button
// in the header (all of them) or from a table's warning (that order's). Each says where it
// belongs, which printer, since when and what's on it; then Print again, Send to another
// printer, or Handled (told the kitchen by voice). The list comes back over the live event.
import { useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { useFormat, useTranslation } from '@xenia/i18n'
import { actionRequest, itemsText, otherPrinters, placeOf } from '@xenia/ordering/printProblems'
import client from '../api/client'
import { apiError } from '../api/errors'
export default function PrintProblemsSheet({ problems, printers, onClose, onChanged, showPlace = true }) {
const { t } = useTranslation('common')
return (