mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 21:21:56 +03:00
f4aa22417f
* 🚚 move footer component * 🚚 move navbar component * 🚚 move ui components * 🚚 move browser tab icon to public folder * 🚚 move Chat Provider * 🚚 move hooks to lib * 🚚 move helpers to lib * 🚚 move types to lib
18 lines
437 B
TypeScript
18 lines
437 B
TypeScript
import { FC } from "react";
|
|
|
|
interface PageHeadingProps {
|
|
title: string;
|
|
subtitle?: string;
|
|
}
|
|
|
|
const PageHeading: FC<PageHeadingProps> = ({ title, subtitle }) => {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center px-5">
|
|
<h1 className="text-3xl font-bold text-center">{title}</h1>
|
|
{subtitle && <h2 className="opacity-50 text-center">{subtitle}</h2>}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default PageHeading;
|