Props for integrating the React component in your app.
stockReadonly<Record<CapsuleSystem, CapsuleStock>>- Independent balances for Original and Vertuo. Each balance has total received, used, and an optional ordered quantity.
machineNamesReadonly<Partial<Record<CapsuleSystem, string>>>- Optional model name for each system. The active model appears beside a system-specific machine illustration.
initialSystem"original" | "vertuo"- System selected on mount. Defaults to Original.
lowStockThresholdnumber- Remaining capsule count that starts the warning. Defaults to five.
orderNotestring- Optional text shown during order confirmation.
onUseCapsule / onReceiveOrder(system: CapsuleSystem) => void | Promise<void>- Record a use or receive a pending order. Pass the updated stock snapshot back after success. Reject a failed request to show a retry message.
onOrder(system: CapsuleSystem, quantity: number) => void | Promise<void>- Runs after confirmation for 10, 30, or 50 capsules. Keep the order in ordered until receipt.