colouring-montreal/app/src/frontend/icons.js

59 lines
1.2 KiB
JavaScript
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,
faAngleLeft, faCaretDown, faSearch } from '@fortawesome/free-solid-svg-icons'
2018-10-01 10:20:45 -04:00
library.add(
faQuestionCircle,
faInfoCircle,
faPaintBrush,
faTimes,
faCheck,
faCheckDouble,
faAngleLeft,
faCaretDown,
faSearch
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" />
);
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" />
);
const SearchIcon = () => (
<FontAwesomeIcon icon="search" />
);
2018-10-01 10:20:45 -04:00
export { HelpIcon, InfoIcon, EditIcon, CloseIcon, SaveIcon, SaveDoneIcon, BackIcon, DownIcon, SearchIcon };