bruno/renderer/components/RequestTabs/CollectionToolBar/index.js
2022-03-13 13:18:15 +05:30

25 lines
865 B
JavaScript

import React from 'react';
import { IconStack, IconGitFork } from '@tabler/icons';
import EnvironmentSelector from 'components/EnvironmentSelector';
import StyledWrapper from './StyledWrapper';
const CollectionToolBar = ({collection}) => {
return (
<StyledWrapper>
<div className="flex items-center p-2">
<div className="flex flex-1 items-center">
<IconStack size={18} strokeWidth={1.5}/>
<span className="ml-2 mr-4 font-semibold">anoop<span style={{paddingInline: 2}}>/</span>{collection.name}</span>
<IconGitFork size={16} strokeWidth={1}/>
<span className="ml-1 text-xs">from anoop/notebase</span>
</div>
<div className="flex flex-1 items-center justify-end">
<EnvironmentSelector />
</div>
</div>
</StyledWrapper>
)
};
export default CollectionToolBar;