-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.tsx
31 lines (27 loc) · 979 Bytes
/
component.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { ConfigProvider, Layout, Typography } from "antd"
import { useMemo } from "react";
import { Provider } from "react-redux";
import { setupStore } from "../../store/store";
import { ButtonCustom } from "../ButtonCustom/component";
const { Title } = Typography;
const { Header, Content } = Layout;
const MainContent = ({ title }: { title: string }) => {
const store = useMemo(() => setupStore(), []);
return (
<Provider store={store}>
<ConfigProvider theme={{ token: { colorPrimary: "#fc03e3" } }}>
<Layout>
<Header style={{ backgroundColor: "transparent" }}>
<Title>
{title}
</Title>
</Header>
<Content>
<ButtonCustom />
</Content>
</Layout>
</ConfigProvider>
</Provider>
)
};
export default MainContent;