1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 00:35:00 +00:00
mon-entreprise/source/components/RuleLink.js
Johan Girod 0e028cc843 wip
2018-08-04 12:11:34 +02:00

19 lines
485 B
JavaScript

/* @flow */
import withColours from 'Components/utils/withColours'
import React from 'react'
import { Link } from 'react-router-dom'
import './RuleLink.css'
import type { Règle } from 'Types/ResultViewTypes'
type Props = Règle
const RuleLink = ({
lien,
nom,
colours: { colour },
style
}: Props & { colours: { colour: string }, style: any }) => (
<Link to={lien} className="rule-link" style={{ color: colour, ...style }}>
{nom}
</Link>
)
export default withColours(RuleLink)