MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getButtonIcon

Function getButtonIcon

web/pgadmin/static/js/SchemaView/SchemaDialogView.jsx:167–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 };
166
167 const getButtonIcon = () => {
168 if(props.customSaveBtnIconType == 'upload') {
169 return <PublishIcon />;
170 } else if(props.customSaveBtnIconType == 'done') {
171 return <DoneIcon />;
172 } else if(props.customSaveBtnIconType == WORKSPACES.QUERY_TOOL) {
173 return <QueryToolIcon />;
174 } else if(props.customSaveBtnIconType == WORKSPACES.PSQL_TOOL) {
175 return <TerminalRoundedIcon style={{width:'unset'}}/>;
176 }
177 return <SaveIcon />;
178 };
179
180 /* I am Groot */
181 return useMemo(() =>

Callers 1

SchemaDialogViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected