@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
8 lines (7 loc) • 462 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useTranslation } from '../../translations';
const AppPageHeader = ({ title, description }) => {
const { t } = useTranslation();
return (_jsxs("div", { className: "mb-4", children: [_jsx("h1", { className: "text-2xl font-bold", children: t(title) }), description && _jsx("p", { className: "text-1xl text-gray-600", children: t(description) })] }));
};
export default AppPageHeader;