mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-27 16:45:42 -04:00
25 lines
594 B
TypeScript
25 lines
594 B
TypeScript
import Link from "@/components/link";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const PageTitle = ({
|
|
canonical,
|
|
className,
|
|
children,
|
|
...rest
|
|
}: React.ComponentProps<"h1"> & {
|
|
canonical: string;
|
|
}) => {
|
|
return (
|
|
<h1 className={cn("mt-0 mb-6 text-left text-3xl font-medium tracking-[-0.015em] lowercase", className)} {...rest}>
|
|
<Link
|
|
href={canonical}
|
|
className="before:text-muted-foreground before:-mr-0.5 before:tracking-widest before:content-['\002E\002F'] hover:no-underline"
|
|
>
|
|
{children}
|
|
</Link>
|
|
</h1>
|
|
);
|
|
};
|
|
|
|
export default PageTitle;
|