import React, {useState} from 'react';
import ListStudentRollCallView from './view';

const ListStudentRollCall = props => {
  const [refreshing, setRefreshing] = useState(false);
  const [studentList, setStudentList] = useState([
    {
      id: 1,
      studentCode: '08465',
      name: 'Nguyễn văn A',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 2,
      studentCode: '08466',
      name: 'Trần thị B',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 3,
      studentCode: '08467',
      name: 'Lê văn C',
      date: '05/08/2025',
      isPresent: false,
      note: 'Nghỉ không phép',
    },
    {
      id: 4,
      studentCode: '08468',
      name: 'Phạm thị D',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 5,
      studentCode: '08469',
      name: 'Hoàng văn E',
      date: '05/08/2025',
      isPresent: false,
      note: 'Nghỉ không phép',
    },
    {
      id: 6,
      studentCode: '08470',
      name: 'Vũ thị F',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 7,
      studentCode: '08471',
      name: 'Đỗ văn G',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 8,
      studentCode: '08472',
      name: 'Bùi thị H',
      date: '05/08/2025',
      isPresent: false,
      note: 'Nghỉ không phép',
    },
    {
      id: 9,
      studentCode: '08473',
      name: 'Ngô văn I',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
    {
      id: 10,
      studentCode: '08474',
      name: 'Đinh thị K',
      date: '05/08/2025',
      isPresent: true,
      note: '',
    },
  ]);
  return (
    <ListStudentRollCallView
      refreshing={refreshing}
      setRefreshing={setRefreshing}
      studentList={studentList}
      setStudentList={setStudentList}
    />
  );
};

export default ListStudentRollCall;
