tachybase_todo/packages/app/src/components/pages/Page.tsx
2020-12-19 15:48:56 +08:00

26 lines
491 B
TypeScript

import React from 'react';
import { PageHeader } from 'antd';
import './style.less';
import { Helmet } from 'umi';
export function Page(props: any) {
const { title, children, ...restProps } = props;
return (
<div>
<Helmet>
<title>{title}</title>
</Helmet>
<PageHeader
title={title}
ghost={false}
{...restProps}
/>
<div className={'page-content'}>
{children}
</div>
</div>
);
};
export default Page;