/** * Copyright (c) 2013-present, Facebook, Inc. * * @emails react-core */ 'use strict'; import Link from 'gatsby-link'; import React from 'react'; import {colors, media} from 'theme'; const ArrowSvg = ({cssProps = {}}) => ( ); const ButtonLink = ({children, type, ...rest}) => { let typeStyle; switch (type) { case 'primary': typeStyle = primaryStyle; break; case 'secondary': typeStyle = secondaryStyle; break; } return ( {children} {type === 'secondary' && } ); }; const style = { display: 'inline-block', fontSize: 16, [media.greaterThan('xlarge')]: { fontSize: 20, }, }; const primaryStyle = { backgroundColor: colors.brand, color: colors.black, padding: '10px 25px', whiteSpace: 'nowrap', transition: 'background-color 0.2s ease-out', [media.greaterThan('xlarge')]: { paddingTop: 15, paddingBottom: 15, }, ':hover': { backgroundColor: colors.white, }, }; const secondaryStyle = { color: colors.brand, transition: 'color 0.2s ease-out', ':hover': { color: colors.white, }, }; export default ButtonLink;