bruno/renderer/components/Sidebar/Collections/index.js
2022-03-07 17:52:35 +05:30

20 lines
523 B
JavaScript

import React from 'react';
import Collection from './Collection';
const Collections = ({collections, actions, dispatch, activeRequestTabId}) => {
return (
<div className="mt-4 flex flex-col">
{collections && collections.length ? collections.map((c) => {
return <Collection
collection={c}
key={c.id}
actions={actions}
dispatch={dispatch}
activeRequestTabId={activeRequestTabId}
/>
}) : null}
</div>
);
};
export default Collections;