Files
outline/app/components/List/Placeholder.js

30 lines
556 B
JavaScript

// @flow
import * as React from "react";
import { times } from "lodash";
import styled from "styled-components";
import Mask from "components/Mask";
import Fade from "components/Fade";
import Flex from "shared/components/Flex";
type Props = {
count?: number,
};
const Placeholder = ({ count }: Props) => {
return (
<Fade>
{times(count || 2, index => (
<Item key={index} column auto>
<Mask />
</Item>
))}
</Fade>
);
};
const Item = styled(Flex)`
padding: 15px 0 16px;
`;
export default Placeholder;