/** @jsx jsx */ import { jsx } from "theme-ui" import DownloadIcon from "../icons/download" import theme from "../theme" type DownloadProps = { name: string src: string bg?: string preview?: boolean notes?: string } const Download = ({ name, src, bg = `white`, preview = true, notes = `` }: DownloadProps) => ( {name && (
{name}
{notes && (
{notes}
)}
)} {preview && (
{`File
)}
) export default Download