ant-design/.dumi/theme/layouts/SidebarLayout/index.tsx
MadCcc e96059cd76
docs: migrate to antd-style (#43623)
* docs: migrate to antd-style

* [CodeFactor] Apply fixes

* chore: code clean

* chore: lint

* chore: try cache

* chore: try

* fix: ssr

* chore: code clean

---------

Co-authored-by: codefactor-io <support@codefactor.io>
2023-07-20 19:27:33 +08:00

27 lines
652 B
TypeScript

import { createStyles } from 'antd-style';
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 = createStyles(({ css }) => ({
main: css`
display: flex;
margin-top: 40px;
`,
}));
const SidebarLayout: React.FC<PropsWithChildren<{}>> = ({ children }) => {
const { styles } = useStyle();
return (
<main className={styles.main}>
<CommonHelmet />
<Sidebar />
<Content>{children}</Content>
</main>
);
};
export default SidebarLayout;