This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/app/components/LoadingPlaceholder/LoadingPlaceholder.js

29 lines
621 B
JavaScript
Raw Normal View History

// @flow
import * as React from "react";
import styled from "styled-components";
import DelayedMount from "components/DelayedMount";
import Fade from "components/Fade";
import Flex from "components/Flex";
import Mask from "components/Mask";
2017-11-10 21:42:33 +00:00
export default function LoadingPlaceholder(props: Object) {
return (
<DelayedMount>
<Wrapper>
<Flex column auto {...props}>
<Mask height={34} />
<br />
<Mask />
<Mask />
<Mask />
</Flex>
</Wrapper>
</DelayedMount>
);
2017-11-10 21:42:33 +00:00
}
const Wrapper = styled(Fade)`
display: block;
margin: 40px 0;
`;