mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
cffd1e63d4
* fix site style * fix md style * update * fix
27 lines
611 B
TypeScript
27 lines
611 B
TypeScript
import { css } from '@emotion/react';
|
|
import type { PropsWithChildren } from 'react';
|
|
import React from 'react';
|
|
import CommonHelmet from '../../common/CommonHelmet';
|
|
import Content from '../../slots/Content';
|
|
import Sidebar from '../../slots/Sidebar';
|
|
|
|
const useStyle = () => ({
|
|
main: css`
|
|
display: flex;
|
|
margin-top: 40px;
|
|
`,
|
|
});
|
|
|
|
const SidebarLayout: React.FC<PropsWithChildren<{}>> = ({ children }) => {
|
|
const { main } = useStyle();
|
|
return (
|
|
<main css={main}>
|
|
<CommonHelmet />
|
|
<Sidebar />
|
|
<Content>{children}</Content>
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default SidebarLayout;
|