import React from "react";
import styled from "styled-components";
import RectangleLoader from "../RectangleLoader/RectangleLoader";
const StyledContainer = styled.div`
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
`;
const StyledItem = styled.div`
width: 100%;
height: 48px;
min-height: 48px;
padding: 0 16px;
box-sizing: border-box;
display: flex;
align-items: center;
.avatar {
margin-right: 8px;
}
.checkbox {
margin-left: auto;
}
`;
const SelectorRowLoader = ({
id,
className,
style,
isMultiSelect,
isContainer,
...rest
}) => {
const getRowItem = (key) => {
return (
{isMultiSelect && (
)}
);
};
const getRowItems = () => {
const rows = [];
for (let i = 0; i < 20; i++) {
rows.push(getRowItem(i));
}
return rows;
};
return isContainer ? (
{getRowItems()}
) : (
getRowItem()
);
};
export default SelectorRowLoader;