el.xwx.moe/components/PageHeader.tsx

24 lines
486 B
TypeScript
Raw Normal View History

2023-12-16 09:15:56 -06:00
import React from "react";
export default function PageHeader({
title,
description,
icon,
}: {
title: string;
2023-12-17 02:57:05 -06:00
description?: string;
2023-12-16 09:15:56 -06:00
icon: string;
}) {
return (
<div className="flex items-center gap-3">
<i
className={`${icon} text-primary sm:text-3xl text-2xl drop-shadow`}
2023-12-16 09:15:56 -06:00
></i>
<div>
<p className="text-3xl capitalize font-thin">{title}</p>
2023-12-17 22:32:33 -06:00
<p className="text-xs sm:text-sm">{description}</p>
2023-12-16 09:15:56 -06:00
</div>
</div>
);
}