mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
ffbb19e090
* chore: enable tsc for demos * chore: site lint * chore: fix lint
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import type { FC, PropsWithChildren } from 'react';
|
|
import React from 'react';
|
|
import Sidebar from '../../slots/Sidebar';
|
|
import Content from '../../slots/Content';
|
|
import CommonHelmet from '../../common/CommonHelmet';
|
|
|
|
const SidebarLayout: FC<PropsWithChildren<{}>> = ({ children }) => (
|
|
<main style={{ display: 'flex', marginTop: 40 }}>
|
|
<CommonHelmet />
|
|
<Sidebar />
|
|
<Content>{children}</Content>
|
|
</main>
|
|
);
|
|
|
|
export default SidebarLayout;
|