-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathstudent.component.tsx
More file actions
37 lines (34 loc) · 921 Bytes
/
student.component.tsx
File metadata and controls
37 lines (34 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import TextareaAutosize from '@material-ui/core/TextareaAutosize';
import Typography from '@material-ui/core/Typography';
import * as innerClasses from './student.styles';
import { DownloadTxtFile } from 'common-app';
interface Props {
room: string;
log: string;
}
export const StudentComponent: React.FC<Props> = (props) => {
const { room, log } = props;
return (
<main className={innerClasses.root}>
<Typography
className={innerClasses.sessionName}
variant="body1"
role="heading"
>
Session name: {room ?? ''}
</Typography>
<label className={innerClasses.label} htmlFor="session">
Content
</label>
<TextareaAutosize
id="session"
rowsMax={30}
rowsMin={30}
className={innerClasses.textarea}
value={log ?? ''}
/>
<DownloadTxtFile />
</main>
);
};