import * as _ from 'lodash'; import * as React from 'react'; import styled, { withTheme } from 'styled-components'; import { Column, FlexWrap } from 'ts/components/newLayout'; import { ThemeValuesInterface } from 'ts/components/siteWrap'; import { Heading } from 'ts/components/text'; import { WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; import { Link } from '../documentation/shared/link'; interface Props { theme: ThemeValuesInterface; } interface LinkConfig { label: string; url: string; shouldOpenInNewTab?: boolean; } const introData: LinkConfig[] = [ { label: 'Blog', url: constants.URL_BLOG, shouldOpenInNewTab: true, }, { label: 'Legal Wiki', url: `${WebsitePaths.Wiki}#Legal-Wiki`, shouldOpenInNewTab: true, }, ]; const programsData: LinkConfig[] = [ { label: 'Ecosystem Grants', url: WebsitePaths.Ecosystem, }, { label: 'Market Making', url: WebsitePaths.MarketMaker, }, { label: 'Infrastructure Credits', url: WebsitePaths.Credits, }, ]; export const DropdownResources: React.FunctionComponent = withTheme((props: Props) => ( <> Programs
    {_.map(programsData, (item, index) => (
  • {item.label}
  • ))}
)); const DropdownWrap = styled.div` padding: 15px 30px 0 30px; a { color: inherit; } ul li { margin: 0 0 16px 0; } `; const StyledWrap = styled(FlexWrap)` padding-top: 20px; margin-top: 10px; position: relative; `;