diff --git a/src/components/shared/send-document-dialog.tsx b/src/components/shared/send-document-dialog.tsx
index e689e1c0..8d7d3830 100644
--- a/src/components/shared/send-document-dialog.tsx
+++ b/src/components/shared/send-document-dialog.tsx
@@ -56,7 +56,12 @@ interface SendDocumentDialogProps {
}
interface PreviewResponse {
- data: { html: string; markdown: string; unresolved: string[] };
+ data: {
+ html: string;
+ markdown: string;
+ unresolved: string[];
+ attachmentThresholdMb: number;
+ };
}
export function SendDocumentDialog(props: SendDocumentDialogProps) {
@@ -97,6 +102,9 @@ function SendDocumentDialogInner({
// Live preview via /api/v1/document-sends/preview. Re-runs whenever the
// body text or recipient changes (debounce-by-react-query for free).
+ // The preview also surfaces the per-port attachment-size threshold so
+ // the rep can see up-front whether their attachment will go inline vs
+ // as a 24h download link.
const previewQuery = useQuery
+ Files over {previewQuery.data.data.attachmentThresholdMb} MB are + sent as a 24-hour download link instead of an inline attachment. +
+ )} +