/* @flow */ import withColours from 'Components/utils/withColours' import withSitePaths from 'Components/utils/withSitePaths' import { compose } from 'ramda' import React from 'react' import { Link } from 'react-router-dom' import { capitalise0 } from '../utils' import './RuleLink.css' import type { Règle } from 'Types/RegleTypes' import type { ThemeColours } from 'Components/utils/withColours' type Props = Règle & { sitePaths: Object, style: CSSStyleDeclaration, colours: ThemeColours } const RuleLink = ({ lien, nom, colours: { colour }, style, sitePaths }: Props) => { const newPath = sitePaths.documentation.index + '/' + lien return ( {capitalise0(nom)} ) } export default compose( withSitePaths, withColours )(RuleLink)