1
- import { Box , Paper , Typography , Link as MuiLink } from "@material-ui/core"
1
+ import Box from "@material-ui/core/Box"
2
+ import Paper from "@material-ui/core/Paper"
3
+ import Typography from "@material-ui/core/Typography"
2
4
import { makeStyles } from "@material-ui/core/styles"
3
5
import CloudCircleIcon from "@material-ui/icons/CloudCircle"
4
6
import Link from "next/link"
@@ -21,7 +23,21 @@ namespace Constants {
21
23
*/
22
24
export const Workspace : React . FC < WorkspaceProps > = ( { workspace } ) => {
23
25
const styles = useStyles ( )
24
- return < div className = { styles . root } >
26
+
27
+ return (
28
+ < div className = { styles . root } >
29
+ < WorkspaceHeader workspace = { workspace } />
30
+ </ div >
31
+ )
32
+ }
33
+
34
+ /**
35
+ * Component for the header at the top of the workspace page
36
+ */
37
+ export const WorkspaceHeader : React . FC < WorkspaceProps > = ( { workspace } ) => {
38
+ const styles = useStyles ( )
39
+
40
+ return (
25
41
< Paper elevation = { 0 } className = { styles . section } >
26
42
< div className = { styles . horizontal } >
27
43
< WorkspaceHeroIcon />
@@ -33,14 +49,18 @@ export const Workspace: React.FC<WorkspaceProps> = ({ workspace }) => {
33
49
</ div >
34
50
</ div >
35
51
</ Paper >
36
- </ div >
52
+ )
37
53
}
38
54
39
- // Component to render the 'Hero Icon' in the header of a workspace
40
- export const WorkspaceHeroIcon = ( ) => {
41
- return < Box mr = { "1em" } >
42
- < CloudCircleIcon width = { Constants . TitleIconSize } height = { Constants . TitleIconSize } />
43
- </ Box >
55
+ /**
56
+ * Component to render the 'Hero Icon' in the header of a workspace
57
+ */
58
+ export const WorkspaceHeroIcon : React . FC = ( ) => {
59
+ return (
60
+ < Box mr = { "1em" } >
61
+ < CloudCircleIcon width = { Constants . TitleIconSize } height = { Constants . TitleIconSize } />
62
+ </ Box >
63
+ )
44
64
}
45
65
46
66
export const useStyles = makeStyles ( ( theme ) => {
@@ -65,6 +85,6 @@ export const useStyles = makeStyles((theme) => {
65
85
icon : {
66
86
width : Constants . TitleIconSize ,
67
87
height : Constants . TitleIconSize ,
68
- }
88
+ } ,
69
89
}
70
- } )
90
+ } )
0 commit comments