mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +08:00
17 lines
457 B
TypeScript
17 lines
457 B
TypeScript
|
import React, { FC, PropsWithChildren } from 'react';
|
||
|
import Sidebar from '../../slots/Sidebar';
|
||
|
import Content from '../../slots/Content';
|
||
|
import CommonHelmet from '../../common/CommonHelmet';
|
||
|
|
||
|
const SidebarLayout: FC<PropsWithChildren<{}>> = ({ children }) => {
|
||
|
return (
|
||
|
<main style={{ display: 'flex', marginTop: 40 }}>
|
||
|
<CommonHelmet />
|
||
|
<Sidebar />
|
||
|
<Content>{children}</Content>
|
||
|
</main>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default SidebarLayout;
|