import { getServerApi } from '@garage/api/server' import { EstimateGeneralInfo } from '@/modules/estimates/estimate-general-info' import { EstimateServicesSection } from '@/modules/estimates/estimate-services-section' import { EstimatePartsSection } from '@/modules/estimates/estimate-parts-section' import { EstimateExpenseItemsSection } from '@/modules/estimates/estimate-expense-items-section' import DashboardPage from '@/base/components/layout/dashboard/dashboard-page' export default async function page(props: { params: Promise<{ id: string }> }) { const { id } = await props.params const api = await getServerApi() const estimate = await api.estimates.getById(id) const estimateData = (estimate as any)?.data if (!estimateData) { return
Estimate not found.
} return (
) }