All files / src/components/NavigationLink index.tsx

66.67% Statements 2/3
0% Branches 0/1
0% Functions 0/1
66.67% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23    4x             4x                          
import React from 'react';
import { ButtonClasses } from 'ag-ems-ui-library';
const styles = require('./NavigationLink.module.css')
import { LocalizedLink as Link } from 'gatsby-theme-i18n';
 
export const NavigationLink: React.FC<{
  to: string;
  target?: string;
  onClick?: () => void;
}> = ({
  to,
  target = '_blank',
  onClick,
  children
}) =>
  <Link
    className={`${styles.NavigationLink} ${ButtonClasses.ghost} ${ButtonClasses.lg} ${ButtonClasses.rounded}`}
    to={to}
    target={target}
    onClick={onClick}
  >
    {children}
  </Link>;