Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { link } from '@govuk-react/lib';
const Link = styled('a')(
link.common(),
link.styleDefault,
link.printFriendly,
({ muted }) => (muted ? link.styleMuted : undefined),
({ textColour }) => (textColour ? link.styleText : undefined),
({ noVisitedState }) => (noVisitedState ? link.styleNoVisitedState : undefined)
);
/**
*
* ### Usage
*
* Simple
* ```jsx
* Example
* ```
*
* It is possible to use this component to style a link from react-router, or reach-router
content: "'\\2014 '",
marginLeft: -spacingSimple5,
paddingRight: spacingSimple1,
},
[MEDIA_QUERIES.TABLET]: {
marginLeft: 0,
':before': {
content: 'none',
},
},
});
const StyledHyperLink = styled('a')(
typography.font({ size: 19 }),
link.common(),
link.styleDefault,
{
display: 'inline-block',
paddingTop: spacingSimple2,
paddingBottom: spacingSimple2,
},
({ selected }) => ({
color: selected && BLACK,
textDecoration: selected ? 'none' : undefined,
[MEDIA_QUERIES.TABLET]: {
marginRight: spacingSimple1,
float: 'left',
textAlign: 'center',
textDecoration: 'none',
color: BLACK,
':link,:visited': {
color: BLACK,