@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.
26 lines • 915 B
JavaScript
import * as React from "react";
import { TYPE_OPTIONS } from "../consts";
import Apple from "../../icons/Apple";
import Google from "../../icons/Google";
import Facebook from "../../icons/Facebook";
import X from "../../icons/X";
import Email from "../../icons/Email";
const getSocialButtonIcon = type => {
if (type === TYPE_OPTIONS.APPLE) return /*#__PURE__*/React.createElement(Apple, {
ariaHidden: true
});
if (type === TYPE_OPTIONS.FACEBOOK) return /*#__PURE__*/React.createElement(Facebook, {
ariaHidden: true
});
if (type === TYPE_OPTIONS.GOOGLE) return /*#__PURE__*/React.createElement(Google, {
ariaHidden: true
});
if (type === TYPE_OPTIONS.X) return /*#__PURE__*/React.createElement(X, {
ariaHidden: true
});
if (type === TYPE_OPTIONS.EMAIL) return /*#__PURE__*/React.createElement(Email, {
ariaHidden: true
});
return null;
};
export default getSocialButtonIcon;