File tree Expand file tree Collapse file tree 1 file changed +25
-20
lines changed Expand file tree Collapse file tree 1 file changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -9,39 +9,44 @@ interface HeaderProps {
99 description ?: ReactNode ;
1010 secondary ?: boolean ;
1111 docsHref ?: string ;
12+ tooltip ?: ReactNode ;
1213}
1314
1415export const SettingsHeader : FC < HeaderProps > = ( {
1516 title,
1617 description,
1718 docsHref,
1819 secondary,
20+ tooltip,
1921} ) => {
2022 const theme = useTheme ( ) ;
2123
2224 return (
2325 < Stack alignItems = "baseline" direction = "row" justifyContent = "space-between" >
2426 < 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 >
4550 { description && (
4651 < span
4752 css = { {
You can’t perform that action at this time.
0 commit comments