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

const TrainingPoint = (props) => {
    const [dataListInfo,setDataListInfo] = useState([
            {semester:'1', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'2', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'3', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'4', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'5', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'6', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'7', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'8', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'9', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'10', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'11', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'12', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'13', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'14', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'15', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'16', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'17', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'18', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'19', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
            {semester:'20', school_year:'2024',activity_class:"PORP1", point_training:'100',classification:'Xuất sắc',note_training:''},
        ])
    const dataList = dataListInfo.map(item => [
        item.semester,
        item.school_year,
        item.activity_class,
        item.point_training,
        item.classification,
        item.note_training
    ])
    const [dataTitle] = useState([
        'Học kì', 'Năm học', 'Lớp sinh hoạt', 'Điểm rèn luyện', 'Xếp loại', 'Ghi chú'
    ])
  return (
    <TrainingPointView 
        dataTitle={dataTitle}
        dataListInfo={dataList}
    />
  );
};

export default TrainingPoint;
