joyent-portal/consoles/my-joy-images/src/components/empty.js

30 lines
718 B
JavaScript
Raw Normal View History

2018-02-06 12:32:47 +02:00
import React from 'react';
import styled from 'styled-components';
import { Margin, Padding } from 'styled-components-spacing';
import Flex from 'styled-flex-component';
import { H3, Card } from 'joyent-ui-toolkit';
import { EmptyState } from 'joyent-icons';
2018-02-06 12:32:47 +02:00
const NoPackagesTitle = styled(H3)`
color: ${props => props.theme.greyDark};
text-align: center;
`;
const FullWidthCard = styled(Card)`
width: 100%;
`;
export default ({ children }) => (
<FullWidthCard>
2018-05-23 19:29:04 +03:00
<Padding all="6">
2018-02-06 12:32:47 +02:00
<Flex alignCenter justifyCenter column>
2018-04-06 17:53:44 +03:00
<Margin bottom="2">
<EmptyState />
2018-02-06 12:32:47 +02:00
</Margin>
<NoPackagesTitle>{children}</NoPackagesTitle>
</Flex>
</Padding>
</FullWidthCard>
);