Files
protocol/packages/website/ts/components/docs/step_links.tsx
Fred Carlsen 88303d8855 Cleanup
2019-08-23 23:53:42 +02:00

29 lines
719 B
TypeScript

import * as _ from 'lodash';
import * as React from 'react';
import styled, { withTheme } from 'styled-components';
import { StepLink, StepLinkConfig } from 'ts/components/docs/step_link';
import { colors } from 'ts/style/colors';
export interface LinkProps {
links: StepLinkConfig[];
}
export const StepLinks: React.FunctionComponent<LinkProps> = (props: LinkProps) => (
<Wrapper>
{props.links.map((shortcut, index) => (
<StepLink key={`step-${index}`} {...shortcut} />
))}
</Wrapper>
);
StepLinks.defaultProps = {
links: [],
};
const Wrapper = styled.div`
background-color: ${colors.backgroundLight};
border: 1px solid #dbdfdd;
margin-bottom: 1.875rem;
`;