import React from 'react'; import { IconChevronRight } from '@tabler/icons'; import CollectionItem from './CollectionItem'; import classnames from 'classnames'; import StyledWrapper from './StyledWrapper'; const Collection = ({collection, actions, dispatch, activeRequestTabId}) => { const iconClassName = classnames({ 'rotate-90': collection.collapsed }); const handleClick = () => { dispatch({ type: actions.SIDEBAR_COLLECTION_CLICK, id: collection.id }); }; return (
{collection.name}
{collection.collapsed ? (
{collection.items && collection.items.length ? collection.items.map((i) => { return }) : null}
) : null}
); }; export default Collection;