import React, {useState} from 'react';
import {Text, View, StyleSheet} from 'react-native';
import CompensateView from './view';

const Compensate = props => {
  const [dataList, setDataList] = useState([
    {id: 1, classCode: 'ATTT2024.1', rest: 5, compensate: 0, total: 25},
    {id: 2, classCode: 'ATTT2024.2', rest: 4, compensate: 1, total: 25},
    {id: 3, classCode: 'ATTT2024.3', rest: 6, compensate: 0, total: 25},
    {id: 4, classCode: 'ATTT2024.4', rest: 3, compensate: 2, total: 25},
    {id: 5, classCode: 'ATTT2024.5', rest: 5, compensate: 0, total: 25},

    {id: 6, classCode: 'CNTT2024.1', rest: 2, compensate: 1, total: 25},
    {id: 7, classCode: 'CNTT2024.2', rest: 4, compensate: 0, total: 25},
    {id: 8, classCode: 'CNTT2024.3', rest: 5, compensate: 0, total: 25},
    {id: 9, classCode: 'CNTT2024.4', rest: 3, compensate: 1, total: 25},
    {id: 10, classCode: 'CNTT2024.5', rest: 6, compensate: 0, total: 25},

    {id: 11, classCode: 'KTPM2024.1', rest: 4, compensate: 1, total: 25},
    {id: 12, classCode: 'KTPM2024.2', rest: 2, compensate: 2, total: 25},
    {id: 13, classCode: 'KTPM2024.3', rest: 5, compensate: 0, total: 25},
    {id: 14, classCode: 'KTPM2024.4', rest: 4, compensate: 0, total: 25},
    {id: 15, classCode: 'KTPM2024.5', rest: 3, compensate: 1, total: 25},

    {id: 16, classCode: 'HTTT2024.1', rest: 5, compensate: 0, total: 25},
    {id: 17, classCode: 'HTTT2024.2', rest: 6, compensate: 0, total: 25},
    {id: 18, classCode: 'HTTT2024.3', rest: 3, compensate: 2, total: 25},
    {id: 19, classCode: 'HTTT2024.4', rest: 4, compensate: 1, total: 25},
    {id: 20, classCode: 'HTTT2024.5', rest: 5, compensate: 0, total: 25},

    {id: 21, classCode: 'KHMT2024.1', rest: 4, compensate: 0, total: 25},
    {id: 22, classCode: 'KHMT2024.2', rest: 5, compensate: 1, total: 25},
    {id: 23, classCode: 'KHMT2024.3', rest: 6, compensate: 0, total: 25},
    {id: 24, classCode: 'KHMT2024.4', rest: 3, compensate: 1, total: 25},
    {id: 25, classCode: 'KHMT2024.5', rest: 5, compensate: 0, total: 25},

    {id: 26, classCode: 'MMT2024.1', rest: 4, compensate: 1, total: 25},
    {id: 27, classCode: 'MMT2024.2', rest: 2, compensate: 0, total: 25},
    {id: 28, classCode: 'MMT2024.3', rest: 5, compensate: 0, total: 25},
    {id: 29, classCode: 'MMT2024.4', rest: 3, compensate: 2, total: 25},
    {id: 30, classCode: 'MMT2024.5', rest: 6, compensate: 0, total: 25},
  ]);
  return <CompensateView dataList={dataList} />;
};

export default Compensate;
