14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
import { Heading } from '@repo/ui';
|
||
import Link from 'next/link';
|
||
|
||
export function Header({ link, title }: { readonly link: string; readonly title: string }) {
|
||
return (
|
||
<div className="flex flex-col justify-between md:flex-row">
|
||
<Heading size={2}>{title}</Heading>
|
||
<Link href={link} className="text-primary-600 text-sm font-medium hover:underline" prefetch>
|
||
Посмотреть условия
|
||
</Link>
|
||
</div>
|
||
);
|
||
}
|