import React from 'react';
import ContentLoader from 'react-content-loader';

export const ListingLoader = props => (
    <ContentLoader
        speed={1.7}
        width={650}
        height={129}
        viewBox="0 0 650 129"
        backgroundColor="#f3f3f3"
        foregroundColor="#ecebeb"
        {...props}
    >
        <rect x="140" y="0" rx="3" ry="3" width="100" height="15" />
        <rect x="140" y="26" rx="3" ry="3" width="500" height="10" />
        <rect x="140" y="46" rx="3" ry="3" width="500" height="10" />
        <rect x="0" y="0" rx="8" ry="8" width="120" height="120" />
    </ContentLoader>
);

export const GridLoader = props => (
    <ContentLoader
        speed={1.7}
        width={302}
        height={233}
        viewBox="0 0 302 233"
        backgroundColor="#f3f3f3"
        foregroundColor="#ecebeb"
        {...props}
    >
        <rect x="20" y="112" rx="3" ry="3" width="100" height="15" />
        <rect x="20" y="137" rx="3" ry="3" width="250" height="10" />
        <rect x="20" y="157" rx="3" ry="3" width="250" height="10" />
        <rect x="20" y="20" rx="8" ry="8" width="72" height="72" />
    </ContentLoader>
);
