mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36:21 +00:00
22 lines
495 B
TypeScript
22 lines
495 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import { useRouter } from 'next/navigation';
|
|
import { Button } from '@nextui-org/react';
|
|
import { IoArrowBackOutline } from 'react-icons/io5';
|
|
|
|
const ButtonGoBack = () => {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<Button
|
|
startContent={ <IoArrowBackOutline /> }
|
|
variant={ 'light' }
|
|
onPress={ () => router.back() }
|
|
>
|
|
{ 'Back' }
|
|
</Button>
|
|
);
|
|
};
|
|
export default ButtonGoBack;
|