UNPKG

2.08 kBJavaScriptView Raw
1"use strict";
2
3function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
5Object.defineProperty(exports, "__esModule", {
6 value: true
7});
8exports.CloseIcon = CloseIcon;
9
10var React = _interopRequireWildcard(require("react"));
11
12function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
13
14function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
16/*
17Copyright (c) 2018-2020 Uber Technologies, Inc.
18
19This source code is licensed under the MIT license found in the
20LICENSE file in the root directory of this source tree.
21*/
22// TODO Switch to using Icon component once it exists
23function CloseIcon() {
24 return React.createElement("svg", {
25 width: "10",
26 height: "10",
27 viewBox: "0 0 10 10",
28 style: {
29 stroke: 'currentColor'
30 },
31 xmlns: "http://www.w3.org/2000/svg"
32 }, React.createElement("path", {
33 d: "M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9",
34 strokeWidth: "2",
35 strokeLinecap: "round"
36 }));
37}
\No newline at end of file