mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
22 lines
589 B
TypeScript
22 lines
589 B
TypeScript
|
import { Helmet } from 'dumi';
|
||
|
import type { PropsWithChildren } from 'react';
|
||
|
import React from 'react';
|
||
|
import Footer from '../../slots/Footer';
|
||
|
|
||
|
const IndexLayout: React.FC<PropsWithChildren<{ title: string; desc: string }>> = ({
|
||
|
children,
|
||
|
...restProps
|
||
|
}) => (
|
||
|
<>
|
||
|
<Helmet>
|
||
|
<title>{restProps.title}</title>
|
||
|
<meta property="og:title" content={restProps.title} />
|
||
|
{restProps.desc && <meta name="description" content={restProps.desc} />}
|
||
|
</Helmet>
|
||
|
<div style={{ minHeight: '100vh' }}>{children}</div>
|
||
|
<Footer />
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default IndexLayout;
|