aboutsummaryrefslogtreecommitdiff
path: root/src/containers/BsuFantomSection/BsuFantomSection.tsx
blob: 90632d762abacc0eae3b7433b59ca7eaab1cdcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import { ContentSection } from 'react-benzin';
import { Link } from '@material-ui/core';
import EventCard from '../../components/EventCard/EventCard';
import { useEvents } from '../../hooks/APIClient';

const BsuFantomSection: React.FC = () => {
  const { data: events } = useEvents();

  return (
    <ContentSection sectionName="bsu-fantom" level={1}>
      <p>
        Schedule your offline <Link href="https://edufpmi.bsu.by">EDUFPMI</Link> conference attendance
      </p>
      <ContentSection sectionName="Upcoming events" level={2}>
        {events?.map(event => <EventCard event={event} />)}
      </ContentSection>
    </ContentSection>
  );
};

export default BsuFantomSection;