Files
bewell-in-ua/components/auth/back-button.tsx
2025-02-05 08:01:14 +02:00

17 lines
339 B
TypeScript

import Link from 'next/link'
import {Button} from '@/components/ui/button'
interface BackButtonProps {
label: string
href: string
}
export const BackButton = ({label, href}: BackButtonProps) => {
return (
<Button variant='link' className='w-full font-normal' size='sm' asChild>
<Link href={href}>{label}</Link>
</Button>
)
}