({
name,
description,
refresh,
icon,
children,
})
| 95 | } |
| 96 | |
| 97 | const PanelWrapper: React.FC<React.PropsWithChildren<IPanelWrapperProps>> = ({ |
| 98 | name, |
| 99 | description, |
| 100 | refresh, |
| 101 | icon, |
| 102 | children, |
| 103 | }) => { |
| 104 | const Icon = icon; |
| 105 | return ( |
| 106 | <div |
| 107 | style={{ |
| 108 | width: '100%', |
| 109 | paddingLeft: '16px', |
| 110 | paddingRight: '16px', |
| 111 | }}> |
| 112 | <Container |
| 113 | style={{ |
| 114 | display: 'block', |
| 115 | width: '100%', |
| 116 | margin: '12px 0px', |
| 117 | }}> |
| 118 | <Typography variant="h5"> |
| 119 | {Icon ? ( |
| 120 | <span> |
| 121 | <Icon /> |
| 122 | |
| 123 | </span> |
| 124 | ) : null} |
| 125 | {name} |
| 126 | {refresh ? ( |
| 127 | <Button |
| 128 | style={{float: 'right'}} |
| 129 | onClick={() => { |
| 130 | refresh(); |
| 131 | }}> |
| 132 | <Refresh /> |
| 133 | </Button> |
| 134 | ) : null} |
| 135 | </Typography> |
| 136 | {description ? <Typography variant="subtitle1">{description}</Typography> : null} |
| 137 | <hr /> |
| 138 | <div className={name.toLowerCase().trim().replace(/ /g, '-')}>{children}</div> |
| 139 | </Container> |
| 140 | </div> |
| 141 | ); |
| 142 | }; |
| 143 | |
| 144 | interface IConfigurerPanelProps { |
| 145 | pluginInfo: IPlugin; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…