import React from 'react'; import styled from 'styled-components'; import { Link } from '@0x/react-shared'; import { Difficulty, Level } from 'ts/components/docs/resource/level'; import { Tag } from 'ts/components/docs/resource/tag'; import { Heading, Paragraph } from 'ts/components/text'; import { colors } from 'ts/style/colors'; export interface IResourceProps { heading?: string; description?: string; url: string; tags: ITagProps[]; } interface ITagProps { label: React.ReactNode; isInverted?: boolean; } export const Resource: React.FC = ({ heading, description, url, tags }) => ( {heading} {description} {tags.map(({ label, isInverted }, index) => ( {label} ))} ); const Wrapper = styled.div` border: 1px solid #d7e3db; padding: 25px 30px; margin-bottom: 1.1rem; display: block; `; const Meta = styled.div` display: flex; align-items: center; justify-content: space-between; `; const Tags = styled.div` display: flex; align-items: center; `;