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

const ClassActivity = props => {
  const [dataList, setDataList] = useState([
    {
      id: '1',
      class_activity: 'ATTT2024.1',
      course: '2024',
      training_system: 'CQUI',
      class_by_course: 'ATTT2024.1',
      science: 'MMT&TT',
      class_leader: 'Nguyễn Minh Đức',
    },
    {
      id: '2',
      class_activity: 'IS2024.IP57.1',
      course: '2024',
      training_system: 'CLC',
      class_by_course: 'IS2024.IP57.1',
      science: 'CNTT',
      class_leader: 'Trần Thị Hương',
    },
    {
      id: '3',
      class_activity: 'BGF197.47.1',
      course: '2023',
      training_system: 'CQUI',
      class_by_course: 'BGF197.47.1',
      science: 'Kinh tế',
      class_leader: 'Phạm Văn Nam',
    },
    {
      id: '4',
      class_activity: 'CS301.12.3',
      course: '2022',
      training_system: 'CLC',
      class_by_course: 'CS301.12.3',
      science: 'Khoa học Máy tính',
      class_leader: 'Lê Thị Mai',
    },
    {
      id: '5',
      class_activity: 'MA205.C33.2',
      course: '2025',
      training_system: 'CQUI',
      class_by_course: 'MA205.C33.2',
      science: 'Toán',
      class_leader: 'Nguyễn Văn Hùng',
    },
    {
      id: '6',
      class_activity: 'ENG101.P2.5',
      course: '2024',
      training_system: 'CLC',
      class_by_course: 'ENG101.P2.5',
      science: 'Ngoại ngữ',
      class_leader: 'Hoàng Thu Trang',
    },
    {
      id: '7',
      class_activity: 'PHYS202.3A.1',
      course: '2023',
      training_system: 'CQUI',
      class_by_course: 'PHYS202.3A.1',
      science: 'Vật lý',
      class_leader: 'Vũ Đức Anh',
    },
    {
      id: '8',
      class_activity: 'CHEM101.12.2',
      course: '2025',
      training_system: 'CLC',
      class_by_course: 'CHEM101.12.2',
      science: 'Hóa học',
      class_leader: 'Đỗ Lan Phương',
    },
    {
      id: '9',
      class_activity: 'BIO202.A1.1',
      course: '2022',
      training_system: 'CQUI',
      class_by_course: 'BIO202.A1.1',
      science: 'Sinh học',
      class_leader: 'Nguyễn Thị Ngọc',
    },
    {
      id: '10',
      class_activity: 'LAW303.L12.1',
      course: '2024',
      training_system: 'CLC',
      class_by_course: 'LAW303.L12.1',
      science: 'Luật',
      class_leader: 'Phan Minh Tuấn',
    },
    {
      id: '11',
      class_activity: 'HIS204.HB1.3',
      course: '2023',
      training_system: 'CQUI',
      class_by_course: 'HIS204.HB1.3',
      science: 'Lịch sử',
      class_leader: 'Trần Văn Bình',
    },
    {
      id: '12',
      class_activity: 'PSY101.PC2.1',
      course: '2025',
      training_system: 'CLC',
      class_by_course: 'PSY101.PC2.1',
      science: 'Tâm lý',
      class_leader: 'Ngô Thị Hạnh',
    },
    {
      id: '13',
      class_activity: 'ART203.AR3.2',
      course: '2022',
      training_system: 'CQUI',
      class_by_course: 'ART203.AR3.2',
      science: 'Mỹ thuật',
      class_leader: 'Bùi Văn Sơn',
    },
    {
      id: '14',
      class_activity: 'ECON305.EC2.1',
      course: '2024',
      training_system: 'CLC',
      class_by_course: 'ECON305.EC2.1',
      science: 'Kinh tế quốc tế',
      class_leader: 'Nguyễn Thuỳ Dung',
    },
    {
      id: '15',
      class_activity: 'MED401.MC1.1',
      course: '2025',
      training_system: 'CQUI',
      class_by_course: 'MED401.MC1.1',
      science: 'Y học',
      class_leader: 'Trần Quốc Việt',
    },
    {
      id: '16',
      class_activity: 'EDU202.ED5.2',
      course: '2023',
      training_system: 'CLC',
      class_by_course: 'EDU202.ED5.2',
      science: 'Giáo dục',
      class_leader: 'Lê Hoài Nam',
    },
  ]);
  return <ClassActivityView dataList={dataList} setDataList={setDataList} />;
};

export default ClassActivity;
