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

const ListRollCall = props => {
  const [dataList, setDataList] = useState([
    {
      id: 1,
      classCode: 'ATTT2024.1',
      generalDetails: '25',
      present: '25',
      lessonLearned: '18',
      numberOfStudent: '40',
      totalStudentFailedRollCall: '5',
      dateStart: '30/06/2025',
      dateEnd: '05/08/2025',
      status: 'Đang diễn ra',
    },
    {
      id: 1,
      classCode: 'ATTT2024.1',
      generalDetails: '25',
      present: '25',
      lessonLearned: '18',
      numberOfStudent: '40',
      totalStudentFailedRollCall: '5',
      dateStart: '30/06/2025',
      dateEnd: '05/08/2025',
      status: 'Đang kết thúc',
    },
    {
      id: 1,
      classCode: 'ATTT2024.1',
      generalDetails: '25',
      present: '25',
      lessonLearned: '18',
      numberOfStudent: '40',
      totalStudentFailedRollCall: '5',
      dateStart: '30/06/2025',
      dateEnd: '05/08/2025',
      status: 'Đang kết thúc',
    },
    {
      id: 1,
      classCode: 'ATTT2024.1',
      generalDetails: '25',
      present: '25',
      lessonLearned: '18',
      numberOfStudent: '40',
      totalStudentFailedRollCall: '5',
      dateStart: '30/06/2025',
      dateEnd: '05/08/2025',
      status: 'Đang kết thúc',
    },
  ]);
  return <ListRollCallView dataList={dataList} />;
};

export default ListRollCall;
