import { Link } from 'react-router-dom' import styled from 'styled-components' // An internal link from the react-router-dom library that is correctly styled export const StyledInternalLink = styled(Link)` text-decoration: none; cursor: pointer; color: ${({ theme }) => theme.primary1}; font-weight: 500; :hover { text-decoration: underline; } :focus { outline: none; text-decoration: underline; } :active { text-decoration: none; } ` export const StyledLink = styled.a<{ $color?: string }>` text-decoration: none; cursor: pointer; color: ${({ theme, $color = theme.primary1 }) => $color}; font-weight: inherit; :hover { text-decoration: underline; } :focus { outline: none; text-decoration: underline; } :active { text-decoration: none; } ` export const StyledBackArrowLink = styled(StyledInternalLink)` color: ${({ theme }) => theme.text1}; ` // A button that triggers some onClick result, but looks like a link. export const LinkStyledButton = styled.button<{ disabled?: boolean }>` border: none; text-decoration: none; background: none; cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')}; color: ${({ theme, disabled }) => (disabled ? theme.text2 : theme.primary1)}; font-weight: 500; :hover { text-decoration: ${({ disabled }) => (disabled ? null : 'underline')}; } :focus { outline: none; text-decoration: ${({ disabled }) => (disabled ? null : 'underline')}; } :active { text-decoration: none; } `