mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-06-28 14:55:49 +00:00
25 lines
538 B
TypeScript
25 lines
538 B
TypeScript
import clsx from "clsx";
|
|
import React from "react";
|
|
|
|
export default function PageHeader({
|
|
title,
|
|
description,
|
|
icon,
|
|
className,
|
|
}: {
|
|
title: string;
|
|
description?: string;
|
|
icon: string;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div className={clsx("flex items-center gap-3", className)}>
|
|
<i className={`${icon} text-primary text-2xl drop-shadow`}></i>
|
|
<div>
|
|
<p className="text-2xl capitalize font-thin">{title}</p>
|
|
<p className="text-xs sm:text-sm">{description}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|