src/icon/delete.tsx (33 lines of code) (raw):
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// BASEUI-GENERATED-REACT-ICON
// DO NOT EDIT THIS FILE DIRECTLY, SEE README.md
import * as React from 'react';
import { useStyletron } from '../styles';
import { mergeOverride, toObjectOverride } from '../helpers/overrides';
import Icon from './icon';
import type { IconProps } from './types';
// @ts-ignore
function Delete(props: IconProps, ref) {
const [, theme] = useStyletron();
const { title = 'Delete', size, color, overrides = {}, ...restProps } = props;
const SvgOverride = mergeOverride(
// Icons from the theme target the SVG override in the underlying Icon component
{
component: theme.icons && theme.icons.Delete ? theme.icons.Delete : null,
},
overrides && overrides.Svg ? toObjectOverride(overrides.Svg) : {}
);
return (
<Icon
viewBox="0 0 24 24"
ref={ref}
title={title}
size={size}
color={color}
overrides={{ Svg: SvgOverride }}
{...restProps}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z"
/>
</Icon>
);
}
export default React.forwardRef<SVGSVGElement, IconProps>(Delete);