2023-11-14 10:48:15 +03:00

16 lines
494 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 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>
);
}