"use client";
import { InfoTooltip } from "~/components/ui/InfoTooltip.js";
import type {
EstimateVersionView,
EstimateWorkspaceView,
} from "~/components/estimates/EstimateWorkspace.types.js";
function EmptyState({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
export function AssumptionsTab({ estimate }: { estimate: EstimateWorkspaceView }) {
const versions = estimate.versions as EstimateVersionView[];
const latestVersion = versions[0] ?? null;
const assumptions = latestVersion?.assumptions ?? [];
if (assumptions.length === 0) {
return No assumptions captured for the current version yet.;
}
return (
Commercial and delivery assumptions
{assumptions.map((assumption) => (
Category
{assumption.category}
Label
{assumption.label}
{assumption.key}
Value
{String(assumption.value)}
))}
);
}