import { CloudArrowDownIcon } from "@heroicons/react/20/solid"; import { CodeBlock } from "~/components/code/CodeBlock"; import { InlineCode } from "~/components/code/InlineCode"; import { LinkButton } from "~/components/primitives/Buttons"; import { Header3 } from "~/components/primitives/Headers"; import { Paragraph } from "~/components/primitives/Paragraph"; import { TextLink } from "~/components/primitives/TextLink"; import { docsPath } from "~/utils/pathBuilder"; export function PacketDisplay({ data, dataType, title, searchTerm, wrap, }: { data: string; dataType: string; title: string; searchTerm?: string; wrap?: boolean; }) { switch (dataType) { case "application/store": { return (
{title} This {title.toLowerCase()} exceeded the size limit and was automatically offloaded to object storage. You can retrieve it using{" "} runs.retrieve or download it directly below. Learn more .
Download {title.toLowerCase()}
); } case "text/plain": { return ( ); } default: { return ( ); } } }