mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 10:11:15 +01:00
20 lines
523 B
JavaScript
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;
|