import { useTranslation } from 'react-i18next';
import { IMAGE_ROOT } from '@/shared/constants/common';

export const TransferCommissionBottomSheet = () => {
  const { t, i18n } = useTranslation();

  return (
    <>
      <div className="bg-dim"></div>
      <div className="bottomsheet">
        <div className="bottomsheet-header">
          <div className="bottomsheet-title">
            <h2>{t('payment.commissionAndSettlement')}</h2>
            <button
              className="close-btn"
              type="button"
            >
              <img
                src={ IMAGE_ROOT + '/ico_close.svg' }
                alt={t('common.close')}
              />
            </button>
          </div>
        </div>
        <div className="fee-cycle">
          <div className="desc dot">{t('payment.settlementPeriod')} : {t('payment.dailyPlus3Days')}</div>
          <div className="desc dot">{t('payment.commission')}</div>
          <div className="divider"></div>
          <ul className="kv-list">
            <li className="kv-row pl-10">
              <span className="k">{t('payment.paymentFeeMinimum')}</span>
              <span className="v">1{i18n.language === 'en' ? '' : t('home.currencyWon')}</span>
            </li>
            <li className="kv-row pl-10">
              <span className="k">{t('payment.paymentFeeFrom1Won')}</span>
              <span className="v">1{i18n.language === 'en' ? '' : t('home.currencyWon')}</span>
            </li>
            <li className="kv-row pl-10">
              <span className="k">{t('payment.cancellationFee')}</span>
              <span className="v">1{i18n.language === 'en' ? '' : t('home.currencyWon')}</span>
            </li>
          </ul>
        </div>

        <div className="bottomsheet-footer">
          <button
            className="btn-50 btn-blue flex-1"
            type="button"
          >{t('common.confirm')}</button>
        </div>
      </div>
    </>
  );
};