/**
 * 平面图 RoomCard 顶栏纯展示：文案与状态类名均由容器传入，不读 locales。
 */
import React from 'react';
import classNames from 'classnames';
export function RoomCardHeaderView(props) {
  var roomTitle = props.roomTitle,
    capacityLine = props.capacityLine,
    status = props.status,
    statusLabel = props.statusLabel,
    _props$showStatusTag = props.showStatusTag,
    showStatusTag = _props$showStatusTag === void 0 ? true : _props$showStatusTag;
  var showCap = capacityLine != null && String(capacityLine).trim() !== '';
  return /*#__PURE__*/React.createElement("div", {
    className: "rc-header"
  }, /*#__PURE__*/React.createElement("div", {
    className: "rc-header__left"
  }, /*#__PURE__*/React.createElement("span", {
    className: "rc-room-name"
  }, roomTitle), showCap ? /*#__PURE__*/React.createElement("span", {
    className: "rc-capacity"
  }, capacityLine) : null), showStatusTag ? /*#__PURE__*/React.createElement("span", {
    className: classNames('rc-tag', "rc-tag--".concat(status))
  }, statusLabel) : null);
}