<template>
  <div class="realtime-container">
    <div class="title">站点信息</div>
    <div class="info">
      <div class="item">
        <div class="item-icon"></div>
        <div class="item-label">站点名称：</div>
        <div class="item-value">{{siteRealTime.siteName}}</div>
      </div>
      <div class="item">
        <div class="item-icon"></div>
        <div class="item-label">下次测流时间：</div>
        <div class="item-value">{{ siteRealTime.nextTime || '-' }}</div>
      </div>
      <div class="item">
        <div class="item-icon"></div>
        <div class="item-label">站点状态：</div>
        <div class="item-value">{{['空闲', '测流中'][siteRealTime.siteStatus]}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    siteRealTime: Object,
  },
}
</script>

<style scoped>
.realtime-container {
  background: #fff;
  height: 190px;
  border-radius: 4px;
  padding: 10px 20px;
}
.title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: #1D2738;
}
.info {
  padding-top: 5px;
  font-size: 14px;
  line-height: 18px;
}
.item {
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.item-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55DA74;
  margin-right: 8px;
}
.item-label {
  width: 100px;
  color: #54606C;
}
.item-value {
  color: #1D2738;
}
</style>
