samvera/serverless-iiif

View on GitHub
docs/components/CallToAction.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import Link from 'next/link';
import classNames from './CallToAction.module.css';

const CallToAction = ({ href, text, newTab }) => {
  const target = newTab ? '_blank' : '_self';
  return (
    <Link href={href} className={`nx-bg-primary-400/10 ${classNames.cta}`} target={target}>
      {text} <span>→</span>
    </Link>
  );
};

export default CallToAction;