/*
 * Author: 黎永顺
 * name:社保福利档案页面重构-小提示
 * Description:
 * Date: 2023/10/31
 */
import React, { Component } from "react";
import { WeaLocaleProvider } from "ecCom";

const getLabel = WeaLocaleProvider.getLabel;

class Index extends Component {
  render() {
    const { dataSource } = this.props;
    return (
      <div className="tip-info-area">
        <div className="title">{getLabel(543177, "小提示")}</div>
        <div className="tip-detail">
          {
            _.map(dataSource, item => (<div className="tip-item">{getLabel(item.lanId, item.title)}</div>))
          }
        </div>
      </div>
    );
  }
}

export default Index;

export const HelpfulDiv = () => {
  return <div className="helpWrapper">
    <span>{getLabel(544362, "1、缴纳月份区间包含起始缴纳月，不包含最后缴纳月;")}</span>
    <span>{getLabel(544365, "2、维护的所有的最后缴纳月都大于当前月，则该待办数据自动清除，不显示在待减员列表；")}</span>
    <span>{getLabel(544366, "3、减员失败情况：①有起始缴纳月却未维护最后缴纳月；②员工存在未归档的核算数据；")}</span>
  </div>;
};

export const CancelHelpfulDiv = () => {
  return <div className="helpWrapper">
    <span>{getLabel(544362, "1、缴纳月份区间包含起始缴纳月，不包含最后缴纳月;")}</span>
    <span>{getLabel(544363, "2、若员工当前不在停缴档案的个税扣缴义务人下，则不可取消停缴；")}</span>
    <span>{getLabel(544364, "3、若员工当前在其他个税扣缴义务人下正在缴纳，也不可取消停缴；")}</span>
  </div>;
};
