joyent-portal/packages/my-joy-beta/src/components/empty.js

31 lines
783 B
JavaScript
Raw Normal View History

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';
2018-02-05 17:12:47 +02:00
import { NoPackages } from 'joyent-logo-assets';
const NoPackagesTitle = styled(H3)`
color: ${props => props.theme.greyDark};
text-align: center;
`;
2018-02-01 12:38:12 +02:00
const FullWidthCard = styled(Card)`
width: calc(100% - 2px);
border-top: none;
`;
2018-02-01 12:38:12 +02:00
export default ({ children }) => (
2018-02-01 12:38:12 +02:00
<FullWidthCard>
<Padding all={6}>
<Flex alignCenter justifyCenter column>
<Margin bottom={2}>
2018-02-05 17:12:47 +02:00
<img src={NoPackages} alt="Sad Animal" />
</Margin>
<NoPackagesTitle>{children}</NoPackagesTitle>
</Flex>
</Padding>
2018-02-01 12:38:12 +02:00
</FullWidthCard>
);