diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 10a2dee..4bdd1f6 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,7 @@ import { Inter } from 'next/font/google'; import './globals.css'; import Header from '@/components/header/header'; import GoTopButton from '@/components/goTopButton/goTopButton'; +import BackButton from '@/components/backButton/backButton'; const inter = Inter({ subsets: ['latin'] }); @@ -22,6 +23,7 @@ export default function RootLayout({ className={`${inter.className} relative bg-gray-800 text-slate-200`} >
+ {children} diff --git a/src/components/backButton/backButton.tsx b/src/components/backButton/backButton.tsx new file mode 100644 index 0000000..37de024 --- /dev/null +++ b/src/components/backButton/backButton.tsx @@ -0,0 +1,22 @@ +'use client'; + +import { CircleArrowLeft } from 'lucide-react'; +import { useRouter } from 'next/navigation'; +import React from 'react'; + +const BackButton: React.FC = () => { + const router = useRouter(); + const handleBack = () => router.push('/'); + + return ( + + ); +}; + +export default BackButton;