import React from 'react';
import { Link } from '@tutorbook/intl';
import styles from './cta-link.module.scss';
export interface CTALinkProps {
label: string;
href: string;
small?: boolean;
wide?: boolean;
}
function Arrow(): JSX.Element {
return (
);
}
export default function CTALink({
label,
href,
small,
wide,
}: CTALinkProps): JSX.Element {
const className =
`${styles.link} ${styles.black}${small ? ` ${styles.small}` : ''}` +
`${wide ? ` ${styles.wide}` : ''}`;
if (href.indexOf('http') < 0)
return (
/* eslint-disable jsx-a11y/anchor-is-valid */
{label}
/* eslint-enable jsx-a11y/anchor-is-valid */
);
return (
{label}
);
}