bruno/renderer/components/Sidebar/index.js
2022-03-07 18:14:49 +05:30

48 lines
1.3 KiB
JavaScript

import React from 'react';
import Collections from './Collections';
import MenuBar from './MenuBar';
import TitleBar from './TitleBar';
import { IconSearch } from '@tabler/icons';
import StyledWrapper from './StyledWrapper';
const Sidebar = ({collections, actions, dispatch, activeRequestTabId}) => {
return (
<StyledWrapper>
<div className="flex flex-row h-full">
<MenuBar />
<div>
<TitleBar
actions={actions}
dispatch={dispatch}
/>
<div className="mt-4 relative collection-filter px-2">
<div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
<span className="text-gray-500 sm:text-sm">
<IconSearch size={16} strokeWidth={1.5}/>
</span>
</div>
<input
type="text"
name="price"
id="price"
className="block w-full pl-7 py-1 sm:text-sm"
placeholder="search"
/>
</div>
<Collections
collections={collections}
actions={actions}
dispatch={dispatch}
activeRequestTabId={activeRequestTabId}
/>
</div>
</div>
</StyledWrapper>
);
};
export default Sidebar;