import React from "react"; import { Button } from "components/Button/Button"; import Typography from "components/typography/Typography"; import { SVGArrowDown, SVGArrowUp, SVGCite, SVGFiletext, SVGDownload, SVGShare, SVGFolder, } from "components/icons"; import classNames from "classnames"; const interactionButtonsStore = [ { icon: , title: "Read file", buttonEmphasis: "high", iconClassName: "h-6 fill-white stroke-white", }, { icon: , title: "Download", buttonEmphasis: "low", iconClassName: "w-6 fill-gray-900 stroke-gray-900", }, { icon: , title: "Cite", buttonEmphasis: "low", iconClassName: "w-6 fill-gray-900 stroke-gray-900", }, { icon: , title: "Share", buttonEmphasis: "low", iconClassName: "w-6 fill-gray-900 stroke-gray-900", }, ]; type ArticleButtonProps = { children?: React.ReactNode; className?: string; emphasis?: "high" | "low"; } & Omit, "">; export function ArticleInteractionButtons({ children, className, emphasis, //to change displaying of component ...props }: ArticleButtonProps) { const abstractButton = ( ); const fileInteractionButtons = interactionButtonsStore.map((button) => { return ( ); }); return (
{emphasis === "low" && !children ? abstractButton : null} {children ? children : fileInteractionButtons}
); } ArticleInteractionButtons.displayName = "ArticleInteractionButtons";