import { colors, Link } from '@0x/react-shared'; import * as _ from 'lodash'; import * as React from 'react'; import { Container } from 'ts/components/ui/container'; import { Text } from 'ts/components/ui/text'; import { Deco, Key, TutorialInfo } from 'ts/types'; import { Translate } from 'ts/utils/translate'; import { styled } from 'ts/style/theme'; export interface TutorialButtonProps { className?: string; translate: Translate; tutorialInfo: TutorialInfo; } const PlainTutorialButton: React.StatelessComponent = ({ translate, tutorialInfo, className }) => (
{translate.get(tutorialInfo.link.title as Key, Deco.Cap)} {translate.get(tutorialInfo.description as Key, Deco.Cap)}
); export const TutorialButton = styled(PlainTutorialButton)` border-radius: 4px; border: 1px solid ${colors.grey325}; background-color: ${colors.white}; &:hover { border: 1px solid ${colors.lightLinkBlue}; background-color: ${colors.lightestBlue}; } padding: 20px; margin-bottom: 15px; `; TutorialButton.defaultProps = {}; TutorialButton.displayName = 'TutorialButton';