16 lines
494 B
TypeScript
16 lines
494 B
TypeScript
/* eslint-disable react/forbid-component-props */
|
||
import type { Props } from './types';
|
||
import Link from 'next/link';
|
||
import { Heading } from 'ui';
|
||
|
||
export function Header({ title, url }: Props & { readonly url: string }) {
|
||
return (
|
||
<div className="flex justify-between">
|
||
<Heading size={2}>{title}</Heading>
|
||
<Link href={url} className="text-primary-600 text-sm font-medium hover:underline" prefetch>
|
||
Посмотреть условия
|
||
</Link>
|
||
</div>
|
||
);
|
||
}
|