'use strict';

import React = require('react');

export class FontAwesomeIcon extends React.Component<{ path?: string }, {}> {

    // NOTES: SVG path data was obtained from: https://github.com/encharm/Font-Awesome-SVG-PNG/tree/master/black/svg
    //        They assume a viewBox of '0 0 1792 1792'.
    //
    //        Styling can be done in (S)CSS using the 'fa-svg' class (for icon height/width/alignment) and 'fa-svg-path' class (for fill color).

    public static paths = {
        CaretDown: 'M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z',

        CaretRight: 'M1152 896q0 26-19 45l-448 448q-19 19-45 19t-45-19-19-45v-896q0-26 19-45t45-19 45 19l448 448q19 19 19 45z',

        TimesCircle: 'M1277 1122q0-26-19-45l-181-181 181-181q19-19 19-45 0-27-19-46l-90-90q-19-19-46-19-26 0-45 19l-181 181-181-181q-19-19-45-19-27 0-46 19l-90 90q-19 19-19 46 0 26 19 45l181 181-181 181q-19 19-19 45 0 27 19 46l90 90q19 19 46 19 26 0 45-19l181-181 181 181q19 19 45 19 27 0 46-19l90-90q19-19 19-46zm387-226q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z',

        Warning: 'M1024 1375v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z'
    };
        return <svg className='fa-svg' viewBox='0 0 1792 1792'><path className='fa-svg-path' d={this.props.path || ''}/></svg>;
    }
}

    public render() {