import { ESTIMATE_DETAIL_INCLUDE, type EstimateDbClient } from "./shared.js";

export async function getEstimateById(db: EstimateDbClient, estimateId: string) {
  return db.estimate.findUnique({
    where: { id: estimateId },
    include: ESTIMATE_DETAIL_INCLUDE,
  });
}
