MCPcopy Create free account
hub / github.com/gotify/server / PanelWrapper

Function PanelWrapper

ui/src/plugin/PluginDetailView.tsx:97–142  ·  view source on GitHub ↗
({
    name,
    description,
    refresh,
    icon,
    children,
})

Source from the content-addressed store, hash-verified

95}
96
97const 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 &nbsp;
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
144interface IConfigurerPanelProps {
145 pluginInfo: IPlugin;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…