import React from 'react'; import styled from '@emotion/styled'; import BugReportIcon from '@material-ui/icons/BugReport'; import DownloadIcon from '@material-ui/icons/CloudDownload'; import HomeIcon from '@material-ui/icons/Home'; import Tooltip from '../../muiComponents/Tooltip'; import Link from '../Link'; import FloatingActionButton from '../../muiComponents/FloatingActionButton'; import { Theme } from '../../design-tokens/theme'; import downloadTarball from './download-tarball'; export const Fab = styled(FloatingActionButton)<{ theme?: Theme }>(props => ({ backgroundColor: props.theme && props.theme.palette.primary.main, color: props.theme && props.theme.palette.white, marginRight: 10, })); type ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL'; export interface ActionBarActionProps { type: ActionType; link: string; } /* eslint-disable react/jsx-no-bind */ const ActionBarAction: React.FC = ({ type, link }) => { switch (type) { case 'VISIT_HOMEPAGE': return ( ); case 'OPEN_AN_ISSUE': return ( ); case 'DOWNLOAD_TARBALL': return ( ); } }; export default ActionBarAction;