mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-26 22:25:40 +00:00
26 lines
681 B
JavaScript
26 lines
681 B
JavaScript
import React from 'react';
|
|
import { IconFolder, IconFile } from '@tabler/icons';
|
|
import path from 'utils/common/path';
|
|
import StyledWrapper from './StyledWrapper';
|
|
|
|
const PathDisplay = ({
|
|
baseName = '',
|
|
iconType = 'file'
|
|
}) => {
|
|
return (
|
|
<StyledWrapper>
|
|
<div className="path-display mt-2">
|
|
<div className="path-layout flex font-mono">
|
|
<div className="icon-column flex">
|
|
{iconType === 'file' ? <IconFile size={16} /> : <IconFolder size={16} />}
|
|
</div>
|
|
<span className="name-container">
|
|
{baseName}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</StyledWrapper>
|
|
);
|
|
};
|
|
|
|
export default PathDisplay; |