File tree 1 file changed +25
-20
lines changed
1 file changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -9,39 +9,44 @@ interface HeaderProps {
9
9
description ?: ReactNode ;
10
10
secondary ?: boolean ;
11
11
docsHref ?: string ;
12
+ tooltip ?: ReactNode ;
12
13
}
13
14
14
15
export const SettingsHeader : FC < HeaderProps > = ( {
15
16
title,
16
17
description,
17
18
docsHref,
18
19
secondary,
20
+ tooltip,
19
21
} ) => {
20
22
const theme = useTheme ( ) ;
21
23
22
24
return (
23
25
< Stack alignItems = "baseline" direction = "row" justifyContent = "space-between" >
24
26
< div css = { { maxWidth : 420 , marginBottom : 24 } } >
25
- < h1
26
- css = { [
27
- {
28
- fontSize : 32 ,
29
- fontWeight : 700 ,
30
- display : "flex" ,
31
- alignItems : "center" ,
32
- lineHeight : "initial" ,
33
- margin : 0 ,
34
- marginBottom : 4 ,
35
- gap : 8 ,
36
- } ,
37
- secondary && {
38
- fontSize : 24 ,
39
- fontWeight : 500 ,
40
- } ,
41
- ] }
42
- >
43
- { title }
44
- </ h1 >
27
+ < Stack direction = "row" spacing = { 1 } alignItems = "center" >
28
+ < h1
29
+ css = { [
30
+ {
31
+ fontSize : 32 ,
32
+ fontWeight : 700 ,
33
+ display : "flex" ,
34
+ alignItems : "center" ,
35
+ lineHeight : "initial" ,
36
+ margin : 0 ,
37
+ marginBottom : 4 ,
38
+ gap : 8 ,
39
+ } ,
40
+ secondary && {
41
+ fontSize : 24 ,
42
+ fontWeight : 500 ,
43
+ } ,
44
+ ] }
45
+ >
46
+ { title }
47
+ </ h1 >
48
+ { tooltip }
49
+ </ Stack >
45
50
{ description && (
46
51
< span
47
52
css = { {
You can’t perform that action at this time.
0 commit comments