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

const FeedBack = props => {
  const [dataList, setDataList] = useState([
    {classCode: 'ATTT2024.1', evaluationOpenDate: '15/07/2025', gpa: 4.0},
    {classCode: 'IS2024.IP57.1', evaluationOpenDate: '15/07/2025', gpa: 3.0},
    {classCode: 'BGF197.47.1', evaluationOpenDate: '15/07/2025', gpa: 3.5},
    {classCode: 'CS301.12.3', evaluationOpenDate: '15/07/2025', gpa: 2.8},
    {classCode: 'MA205.C33.2', evaluationOpenDate: '15/07/2025', gpa: 3.7},

    {classCode: 'KTPM2024.2', evaluationOpenDate: '15/07/2025', gpa: 3.2},
    {classCode: 'HTTT2024.3', evaluationOpenDate: '15/07/2025', gpa: 3.9},
    {classCode: 'CNTT2024.4', evaluationOpenDate: '15/07/2025', gpa: 2.5},
    {classCode: 'KHMT2024.5', evaluationOpenDate: '15/07/2025', gpa: 3.6},
    {classCode: 'MMT2024.1', evaluationOpenDate: '15/07/2025', gpa: 3.4},

    {classCode: 'IS301.P12.2', evaluationOpenDate: '15/07/2025', gpa: 3.1},
    {classCode: 'CS205.B23.1', evaluationOpenDate: '15/07/2025', gpa: 2.9},
    {classCode: 'MA303.D44.2', evaluationOpenDate: '15/07/2025', gpa: 3.8},
    {classCode: 'BGF201.22.1', evaluationOpenDate: '15/07/2025', gpa: 3.0},
    {classCode: 'SE404.P01.1', evaluationOpenDate: '15/07/2025', gpa: 4.0},

    {classCode: 'ATTT2024.6', evaluationOpenDate: '15/07/2025', gpa: 3.3},
    {classCode: 'CNTT2024.7', evaluationOpenDate: '15/07/2025', gpa: 2.7},
    {classCode: 'KTPM2024.8', evaluationOpenDate: '15/07/2025', gpa: 3.5},
    {classCode: 'HTTT2024.9', evaluationOpenDate: '15/07/2025', gpa: 3.6},
    {classCode: 'KHMT2024.10', evaluationOpenDate: '15/07/2025', gpa: 2.6},

    {classCode: 'MMT2024.11', evaluationOpenDate: '15/07/2025', gpa: 3.2},
    {classCode: 'IS2024.IP60.2', evaluationOpenDate: '15/07/2025', gpa: 3.9},
    {classCode: 'CS302.45.1', evaluationOpenDate: '15/07/2025', gpa: 2.4},
    {classCode: 'MA206.C11.1', evaluationOpenDate: '15/07/2025', gpa: 3.7},
    {classCode: 'BGF199.55.2', evaluationOpenDate: '15/07/2025', gpa: 3.3},

    {classCode: 'SE405.P09.1', evaluationOpenDate: '15/07/2025', gpa: 3.8},
    {classCode: 'ATTT2024.12', evaluationOpenDate: '15/07/2025', gpa: 3.1},
    {classCode: 'CNTT2024.13', evaluationOpenDate: '15/07/2025', gpa: 3.6},
    {classCode: 'KTPM2024.14', evaluationOpenDate: '15/07/2025', gpa: 3.0},
    {classCode: 'HTTT2024.15', evaluationOpenDate: '15/07/2025', gpa: 2.9},
  ]);
  return <FeedBackView dataList={dataList} setDataList={setDataList} />;
};

export default FeedBack;
