50 lines
1.3 KiB
JavaScript
50 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import { Layout, Row, Col, Grid } from 'antd';
|
|
import Link from './Link';
|
|
import { helpUrls } from './HelpUrls';
|
|
const { Footer } = Layout;
|
|
const { useBreakpoint } = Grid;
|
|
|
|
const footerElements = [
|
|
{
|
|
description: 'Serum Developer Resources',
|
|
link: helpUrls.developerResources,
|
|
},
|
|
{ description: 'Discord Group', link: helpUrls.discord },
|
|
{ description: 'GitHub', link: helpUrls.github },
|
|
{ description: 'Project Serum', link: helpUrls.projectSerum },
|
|
{ description: 'Solana Network', link: helpUrls.solanaBeach },
|
|
];
|
|
|
|
export const CustomFooter = () => {
|
|
const smallScreen = !useBreakpoint().lg;
|
|
|
|
return (
|
|
<Footer
|
|
style={{
|
|
height: '45px',
|
|
paddingBottom: 10,
|
|
paddingTop: 10,
|
|
}}
|
|
>
|
|
<Row align="middle" gutter={[16, 4]}>
|
|
{!smallScreen && (
|
|
<>
|
|
<Col flex="auto" />
|
|
{footerElements.map((elem, index) => {
|
|
return (
|
|
<Col key={index + ''}>
|
|
<Link external to={elem.link}>
|
|
{elem.description}
|
|
</Link>
|
|
</Col>
|
|
);
|
|
})}
|
|
</>
|
|
)}
|
|
<Col flex="auto">{/* <DexProgramSelector />*/}</Col>
|
|
</Row>
|
|
</Footer>
|
|
);
|
|
};
|