import { IconAlertCircleMini, IconArrowUpRightMini, IconSpinnerMini, location, SubtleButton, SubtleButtonLink, Tooltip } from "@heydovetail/ui-components"; import React from "react"; import { AttachmentService } from "../../AttachmentService"; import { Attachment } from "../../util/attrs"; import { AttachmentDownloadUrlSubscribe } from "./AttachmentDownloadUrlSubscribe"; interface Props { attachment: Attachment; attachmentService: AttachmentService; } export function AttachmentDownloadButton(props: Props) { return ( {(attachmentDownloadUrl): React.ReactNode => { switch (attachmentDownloadUrl.type) { case "refreshing": case "pending": return ( {}}> ); case "unavailable": return ( {}}> ); case "available": return ( ); } }} ); }