// src/services/orderService.js
import { db } from '../db.js';
import { formatCurrency } from '../lib/format.js';

export async function getOrder(id) {
  return db.orders.findById(id);
}

export function orderSummary(order) {
  return `Đơn ${order.id}: ${formatCurrency(order.total)}`;
}
