import React from 'react'; import {BadgeComponent as Badge} from '../../atoms'; import type {ITreeSelectInput as Props} from './tree-select-input.type'; import {TreeSelectInputStyle as S} from './tree-select-input.style'; export const TreeSelectInputComponent: React.FC = ({ text, clearBadgeText = 'Clear all filters', placeholder, showCleanButton, onClick, onClean, }) => { return ( {showCleanButton ? ( {text} ) : ( {placeholder} )} {showCleanButton && ( )} ); };