colouring-montreal/app/src/frontend/components/icons.tsx

87 lines
1.6 KiB
TypeScript
Raw Normal View History

2018-10-01 10:20:45 -04:00
/**
* Mini-library of icons
*/
import React from 'react'
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
2018-10-01 11:59:39 -04:00
import { faQuestionCircle, faPaintBrush, faInfoCircle, faTimes, faCheck, faCheckDouble,
2019-10-08 09:20:22 -04:00
faAngleLeft, faCaretDown, faSearch, faEye, faCaretUp, faCaretRight } from '@fortawesome/free-solid-svg-icons'
2018-10-01 10:20:45 -04:00
library.add(
faQuestionCircle,
faInfoCircle,
faPaintBrush,
faTimes,
faCheck,
faCheckDouble,
faAngleLeft,
faCaretDown,
2019-09-04 15:47:29 -04:00
faCaretUp,
2019-10-08 09:20:22 -04:00
faCaretRight,
2019-08-23 09:56:29 -04:00
faSearch,
faEye
2018-10-01 10:20:45 -04:00
);
const HelpIcon = () => (
<FontAwesomeIcon icon="question-circle" />
);
const InfoIcon = () => (
<FontAwesomeIcon icon="info-circle" />
);
const EditIcon = () => (
<FontAwesomeIcon icon="paint-brush" />
);
2019-08-23 09:56:29 -04:00
const ViewIcon = () => (
<FontAwesomeIcon icon="eye" />
);
2018-10-01 10:20:45 -04:00
const CloseIcon = () => (
<FontAwesomeIcon icon="times" />
);
const SaveIcon = () => (
<FontAwesomeIcon icon="check" />
);
const SaveDoneIcon = () => (
<FontAwesomeIcon icon="check-double" />
);
const BackIcon = () => (
<FontAwesomeIcon icon="angle-left" />
);
2018-10-01 10:20:45 -04:00
const DownIcon = () => (
<FontAwesomeIcon icon="caret-down" />
);
2019-09-04 15:47:29 -04:00
const UpIcon = () => (
<FontAwesomeIcon icon="caret-up" />
);
2019-10-08 09:20:22 -04:00
const RightIcon = () => (
<FontAwesomeIcon icon="caret-right" />
);
const SearchIcon = () => (
<FontAwesomeIcon icon="search" />
);
2018-10-01 10:20:45 -04:00
2019-08-23 09:56:29 -04:00
export {
HelpIcon,
InfoIcon,
EditIcon,
ViewIcon,
CloseIcon,
SaveIcon,
SaveDoneIcon,
BackIcon,
DownIcon,
2019-09-04 15:47:29 -04:00
UpIcon,
2019-10-08 09:20:22 -04:00
RightIcon,
2019-08-23 09:56:29 -04:00
SearchIcon
};