11import { CloudArrowDownIcon } from "@heroicons/react/20/solid" ;
22import { CodeBlock } from "~/components/code/CodeBlock" ;
3+ import { InlineCode } from "~/components/code/InlineCode" ;
34import { LinkButton } from "~/components/primitives/Buttons" ;
5+ import { Header3 } from "~/components/primitives/Headers" ;
46import { Paragraph } from "~/components/primitives/Paragraph" ;
7+ import { TextLink } from "~/components/primitives/TextLink" ;
8+ import { docsPath } from "~/utils/pathBuilder" ;
59
610export function PacketDisplay ( {
711 data,
@@ -15,13 +19,26 @@ export function PacketDisplay({
1519 switch ( dataType ) {
1620 case "application/store" : {
1721 return (
18- < div className = "flex flex-col" >
19- < Paragraph variant = "base/bright" className = "w-full py-2.5 text-sm" >
20- { title }
22+ < div className = "mt-2 flex flex-col" >
23+ < Header3 > { title } </ Header3 >
24+ < Paragraph variant = "small" className = "mb-2" >
25+ This { title . toLowerCase ( ) } exceeded the size limit and was automatically offloaded to
26+ object storage. You can retrieve it using{ " " }
27+ < InlineCode variant = "extra-small" > runs.retrieve</ InlineCode > or download it directly
28+ below. < TextLink to = { docsPath ( "limits#task-payloads-and-outputs" ) } > Learn more</ TextLink >
29+ .
2130 </ Paragraph >
22- < LinkButton LeadingIcon = { CloudArrowDownIcon } to = { data } variant = "tertiary/medium" download >
23- Download
24- </ LinkButton >
31+ < div >
32+ < LinkButton
33+ LeadingIcon = { CloudArrowDownIcon }
34+ to = { data }
35+ variant = "secondary/small"
36+ download
37+ className = "inline-flex text-text-bright"
38+ >
39+ Download { title . toLowerCase ( ) }
40+ </ LinkButton >
41+ </ div >
2542 </ div >
2643 ) ;
2744 }
0 commit comments