mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-17 11:21:35 +03:00
1d7bc8a5bc
* remove duplicate import * 🚧 add new linter configuration * 🧑💻 add and run prettier * 🐛 add babel parser for linter * 🧑💻 add lint-fix command * 🚨 use lint-fix * 🚨 remove 'FC' as a type. Use const and JSX.Element * 🚨 enforce arrow function rule from linter * 🔥 delete unused file * 🚨 adding /* eslint-disable */ in failing files * 💩 add ts-expect-error to Victory components
18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
interface PageHeadingProps {
|
|
title: string;
|
|
subtitle?: string;
|
|
}
|
|
|
|
const PageHeading = ({ title, subtitle }: PageHeadingProps): JSX.Element => {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center px-5">
|
|
<h1 className="text-3xl font-bold text-center">{title}</h1>
|
|
{subtitle !== undefined && (
|
|
<h2 className="opacity-50 text-center">{subtitle}</h2>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default PageHeading;
|