2022-02-10 23:06:24 -06:00
|
|
|
import React from 'react';
|
|
|
|
import QueryToolSvg from '../../img/fonticon/query_tool.svg?svgr';
|
2022-04-18 02:20:51 -05:00
|
|
|
import ViewDataSvg from '../../img/fonticon/view_data.svg?svgr';
|
2022-02-10 23:06:24 -06:00
|
|
|
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-04-03 01:57:47 -05:00
|
|
|
import Expand from '../../img/fonticon/open_in_full.svg?svgr';
|
|
|
|
import Collapse from '../../img/fonticon/close_fullscreen.svg?svgr';
|
2022-04-26 06:11:10 -05:00
|
|
|
import AWS from '../../img/aws.svg?svgr';
|
2022-05-24 01:04:23 -05:00
|
|
|
import BigAnimal from '../../img/biganimal.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,
|
|
|
|
};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const QueryToolIcon = ({style})=><ExternalIcon Icon={QueryToolSvg} style={{height: '1rem', ...style}} data-label="QueryToolIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
QueryToolIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const ViewDataIcon = ({style})=><ExternalIcon Icon={ViewDataSvg} style={{height: '0.8rem', ...style}} data-label="ViewDataIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
ViewDataIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const SaveDataIcon = ({style})=><ExternalIcon Icon={SaveDataSvg} style={{height: '1rem', ...style}} data-label="SaveDataIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
SaveDataIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const PasteIcon = ({style})=><ExternalIcon Icon={PasteSvg} style={style} data-label="PasteIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
PasteIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const FilterIcon = ({style})=><ExternalIcon Icon={FilterSvg} style={style} data-label="FilterIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
FilterIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const CommitIcon = ({style})=><ExternalIcon Icon={CommitSvg} style={{height: '1.2rem', ...style}} data-label="CommitIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
CommitIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const RollbackIcon = ({style})=><ExternalIcon Icon={RollbackSvg} style={{height: '1.2rem', ...style}} data-label="RollbackIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
RollbackIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const ClearIcon = ({style})=><ExternalIcon Icon={ClearSvg} style={style} data-label="ClearIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
ClearIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const ConnectedIcon = ({style})=><ExternalIcon Icon={ConnectedSvg} style={{height: '1rem', ...style}} data-label="ConnectedIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
ConnectedIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const DisonnectedIcon = ({style})=><ExternalIcon Icon={DisconnectedSvg} style={{height: '1rem', ...style}} data-label="DisonnectedIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
DisonnectedIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const RegexIcon = ({style})=><ExternalIcon Icon={RegexSvg} style={style} data-label="RegexIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
RegexIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const FormatCaseIcon = ({style})=><ExternalIcon Icon={FormatCaseSvg} style={style} data-label="FormatCaseIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
FormatCaseIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const ExpandDialogIcon = ({style})=><ExternalIcon Icon={Expand} style={{height: '1.2rem', ...style}} data-label="ExpandDialogIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
ExpandDialogIcon.propTypes = {style: PropTypes.object};
|
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const MinimizeDialogIcon = ({style})=><ExternalIcon Icon={Collapse} style={{height: '1.4rem', ...style}} data-label="MinimizeDialogIcon" />;
|
2022-04-18 02:20:51 -05:00
|
|
|
MinimizeDialogIcon.propTypes = {style: PropTypes.object};
|
2022-04-26 06:11:10 -05:00
|
|
|
|
2022-05-12 07:59:09 -05:00
|
|
|
export const AWSIcon = ({style})=><ExternalIcon Icon={AWS} style={{height: '1.4rem', ...style}} data-label="AWSIcon" />;
|
2022-04-26 06:11:10 -05:00
|
|
|
AWSIcon.propTypes = {style: PropTypes.object};
|
2022-05-24 01:04:23 -05:00
|
|
|
|
|
|
|
export const BigAnimalIcon = ({style})=><ExternalIcon Icon={BigAnimal} style={{height: '1.4rem', ...style}} data-label="BigAnimalIcon" />;
|
|
|
|
BigAnimalIcon.propTypes = {style: PropTypes.object};
|