import Link from '@docusaurus/Link';
/**
 * Created by David Garcia for Finboot.
 * 
 * Custom button component for Docusaurus.
 */

import clsx from 'clsx';
import React from 'react';

import { ButtonProps } from '../types';

export default function Button(props:ButtonProps) {
    const {
        className,
        link,
        text,
    } = props;
  return (
    <Link to={link} className={clsx("button", className)}>
      {text}
    </Link>
  );
}