import { RepairDeskView } from './repair-desk-view'
import { RepairTechView } from './repair-tech-view'

interface RepairsStationProps {
  permissions: string[]
}

export function RepairsStation({ permissions }: RepairsStationProps) {
  const canEdit = permissions.includes('repairs.edit')

  // Front desk (can edit/intake) gets the desk view with queue + intake
  // Technician (view only) gets the focused workbench
  if (canEdit) {
    return <RepairDeskView canEdit={canEdit} />
  }

  return <RepairTechView />
}
