import Link from "next/link";
import styles from "./sectionFooter.module.scss";
import { Icon } from "./Icon";

export const SectionFooter = ({ link, linkText }: { link: string, linkText: string }) => {
  return (
    <footer className={styles.sectionFooter}>
      {link && linkText && <Link href={link} className={styles.link}>
        <span>{linkText}</span>
        <Icon type="arrowRight" />
      </Link>}
    </footer>
  );
};
