2022-02-10 23:06:24 -06:00
|
|
|
import React from 'react';
|
|
|
|
import QueryToolSvg from '../../img/fonticon/query_tool.svg?svgr';
|
|
|
|
import SaveDataSvg from '../../img/fonticon/save_data_changes.svg?svgr';
|
|
|
|
import PasteSvg from '../../img/content_paste.svg?svgr';
|
|
|
|
import FilterSvg from '../../img/filter_alt_black.svg?svgr';
|
|
|
|
import ClearSvg from '../../img/cleaning_services_black.svg?svgr';
|
|
|
|
import CommitSvg from '../../img/fonticon/commit.svg?svgr';
|
|
|
|
import RollbackSvg from '../../img/fonticon/rollback.svg?svgr';
|
|
|
|
import ConnectedSvg from '../../img/fonticon/connected.svg?svgr';
|
|
|
|
import DisconnectedSvg from '../../img/fonticon/disconnected.svg?svgr';
|
|
|
|
import RegexSvg from '../../img/fonticon/regex.svg?svgr';
|
|
|
|
import FormatCaseSvg from '../../img/fonticon/format_case.svg?svgr';
|
|
|
|
import PropTypes from 'prop-types';
|
2022-03-21 02:59:26 -05:00
|
|
|
import Expand from '../../img/fonticon/expand.svg?svgr';
|
|
|
|
import Collapse from '../../img/fonticon/minimize_collapse.svg?svgr';
|
2022-02-10 23:06:24 -06:00
|
|
|
|
|
|
|
export default function ExternalIcon({Icon, ...props}) {
|
2022-03-21 02:59:26 -05:00
|
|
|
return <Icon className={'MuiSvgIcon-root'} {...props} />;
|
2022-02-10 23:06:24 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
ExternalIcon.propTypes = {
|
|
|
|
Icon: PropTypes.elementType.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const QueryToolIcon = ()=><ExternalIcon Icon={QueryToolSvg} style={{height: '0.7em'}} />;
|
|
|
|
export const SaveDataIcon = ()=><ExternalIcon Icon={SaveDataSvg} style={{height: '0.7em'}} />;
|
|
|
|
export const PasteIcon = ()=><ExternalIcon Icon={PasteSvg} />;
|
|
|
|
export const FilterIcon = ()=><ExternalIcon Icon={FilterSvg} />;
|
|
|
|
export const CommitIcon = ()=><ExternalIcon Icon={CommitSvg} />;
|
|
|
|
export const RollbackIcon = ()=><ExternalIcon Icon={RollbackSvg} />;
|
|
|
|
export const ClearIcon = ()=><ExternalIcon Icon={ClearSvg} />;
|
|
|
|
export const ConnectedIcon = ()=><ExternalIcon Icon={ConnectedSvg} style={{height: '0.7em'}} />;
|
|
|
|
export const DisonnectedIcon = ()=><ExternalIcon Icon={DisconnectedSvg} style={{height: '0.7em'}} />;
|
|
|
|
export const RegexIcon = ()=><ExternalIcon Icon={RegexSvg} />;
|
|
|
|
export const FormatCaseIcon = ()=><ExternalIcon Icon={FormatCaseSvg} />;
|
2022-03-23 02:58:35 -05:00
|
|
|
export const ExpandDialogIcon = ()=><ExternalIcon Icon={Expand} style={{height: 'auto', width: '1em'}} />;
|
|
|
|
export const MinimizeDialogIcon = ()=><ExternalIcon Icon={Collapse} style={{height: 'auto'}} />;
|
2022-02-10 23:06:24 -06:00
|
|
|
|