mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 10:19:22 +03:00
36 lines
759 B
TypeScript
36 lines
759 B
TypeScript
import React from 'react';
|
|
import { Flex, Box, Heading, Text } from '@chakra-ui/react';
|
|
|
|
/**
|
|
* Types
|
|
*/
|
|
import { IPageProps } from '@educt/interfaces';
|
|
|
|
/**
|
|
* Components
|
|
*/
|
|
import PrevPageButton from '@educt/components/PrevPageButton';
|
|
import CreateCourseForm from './components';
|
|
|
|
/**
|
|
* Create course page
|
|
*/
|
|
const CreateCoursePage: React.FC<IPageProps> = () => {
|
|
return (
|
|
<Box>
|
|
<Box>
|
|
<Flex alignItems='center'>
|
|
<PrevPageButton prevPage='/courses' />
|
|
<Heading as='h1'>Course creation</Heading>
|
|
</Flex>
|
|
<Text mt='3'>Fill in the required fields to create a course</Text>
|
|
</Box>
|
|
<Box mt='5'>
|
|
<CreateCourseForm />
|
|
</Box>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default CreateCoursePage;
|