react-flaticons
Version:
A React component library that provides easy access to free vector icons from the Flaticon website.
45 lines (41 loc) • 1.16 kB
JavaScript
import React from 'react';
var MyContext = /*#__PURE__*/React.createContext({
color: undefined,
size: undefined,
className: undefined,
style: undefined,
attr: undefined
});
//
export default MyContext;
// import React from 'react';
//
// const MyContext = React.createContext('5px');
//
// export default MyContext;
// import * as React from "react";
//
// export interface IconContext {
// color?: string;
// size?: string;
// // size?: number | string;
// className?: string;
// style?: React.CSSProperties;
// attr?: React.SVGAttributes<SVGElement>;
// }
//
// export const DefaultContext: IconContext = {
// color: undefined,
// size: undefined,
// className: undefined,
// style: undefined,
// attr: undefined,
// // attr: {},
// };
// export const IconContext = React.createContext<IconContext>(DefaultContext);
// export default IconContext;
// export default React.createContext<IconContext>(DefaultContext);
// export const MyContext = React.createContext<IconContext>(DefaultContext);
//
// export const MyContext: React.Context<IconContext> =
// React.createContext && React.createContext(DefaultContext);