48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
import React, { FC } from "react";
|
|
import { Container, Box, Heading, Button, Flex } from "@chakra-ui/react";
|
|
|
|
import PoolsOverview from "components/pool/PoolsOverview";
|
|
import MyPools from "components/pool/MyPools";
|
|
import OtherPools from "components/pool/OtherPools";
|
|
import Link from "next/link";
|
|
|
|
const Pools: FC = () => {
|
|
return (
|
|
<Container
|
|
px={["3", null, "12"]}
|
|
pt={["8", null, "24"]}
|
|
pb={["16", null, "64"]}
|
|
maxWidth="container.xl"
|
|
color="white"
|
|
>
|
|
<Flex
|
|
justify="space-between"
|
|
align="center"
|
|
px={["1", null, "6"]}
|
|
mb="4"
|
|
mt={["4", null, "12"]}
|
|
>
|
|
<Heading fontSize="xl">Overview</Heading>
|
|
<Link href="/pools/create" passHref>
|
|
<Button variant="primary" size="sm">
|
|
Create pool
|
|
</Button>
|
|
</Link>
|
|
</Flex>
|
|
<PoolsOverview />
|
|
|
|
<Box px={["1", null, "6"]} mb="4" mt={["8", null, "12"]}>
|
|
<Heading fontSize="xl">My Pools</Heading>
|
|
</Box>
|
|
<MyPools />
|
|
|
|
<Box px={["1", null, "6"]} mb="4" mt={["8", null, "12"]}>
|
|
<Heading fontSize="xl">Other Pools</Heading>
|
|
</Box>
|
|
<OtherPools />
|
|
</Container>
|
|
);
|
|
};
|
|
|
|
export default Pools;
|