import React from 'react';
import styled from 'styled-components';
import { Badge, Flexbox, Typography } from '../../..';
import { ellipsis } from '../Select.styles';
var StyledTypography = styled(Typography).withConfig({
  displayName: "ValueDisplayMultiSelect__StyledTypography",
  componentId: "sc-1fihppj-0"
})(["display:block;margin-right:", "px;", ""], function (_ref) {
  var theme = _ref.theme;
  return theme.spacing.unit(2);
}, ellipsis);
export function ValueDisplayMultiSelect(props) {
  var label = props.label,
    placeholder = props.placeholder,
    selectedCount = props.selectedCount;
  if (selectedCount === 0) {
    return React.createElement(StyledTypography, {
      type: "secondary",
      color: function color(t) {
        return t.colorTokens.neutral.text_weak;
      }
    }, placeholder);
  }
  return React.createElement(Flexbox, {
    container: true,
    alignItems: "center",
    gap: 1
  }, React.createElement(Flexbox, {
    item: true
  }, React.createElement(Badge.Number, {
    size: 4
  }, selectedCount)), React.createElement(Flexbox, {
    item: true
  }, React.createElement(StyledTypography, {
    type: "secondary",
    color: "inherit"
  }, label)));
}