{
if (v.length) setDuration(v[0] as HoldDuration);
}}
className="w-full"
>
{HOLD_OPTIONS.map((opt) => (
{opt.label}
))}
{/* Fixed-height row — same h-9 in all tab states to prevent layout jump */}
{duration === "custom" ? (
) : (
resolvedDate && (
Hold until:{" "}
{format(resolvedDate, "dd MMM yyyy")}
)
)}
{/* For custom: show resolved date below the picker once selected */}
{duration === "custom" && customDate && (
Hold until:{" "}
{format(customDate, "dd MMM yyyy")}
)}