This repository has been archived on 2025-03-08. You can view files and clone it, but cannot push or open issues or pull requests.
aidxnCC/app/components/BackButton.tsx

17 lines
557 B
TypeScript
Raw Normal View History

2025-01-08 09:14:02 -05:00
import React from 'react';
import Link from 'next/link';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faArrowLeft } from '@fortawesome/free-solid-svg-icons';
const BackButton: React.FC<{ href: string }> = ({ href }) => {
return (
<Link href={href} legacyBehavior>
<a className="bg-gray-800 hover:bg-gray-700 text-white font-bold py-2 px-4 mt-4 rounded inline-flex items-center">
<FontAwesomeIcon icon={faArrowLeft} className="mr-2" />
Back
</a>
</Link>
);
};
export default BackButton;