Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/icon/star.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
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 Star(props: IconProps, ref) {
const [, theme] = useStyletron();
const { title = 'Star', size, color, overrides = {}, ...restProps } = props;
const SvgOverride = mergeOverride(
{
component: theme.icons && theme.icons.Star ? theme.icons.Star : 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="M12 2.5L14.91 8.26L21.27 9.18L16.64 13.68L17.73 20.02L12 17.01L6.27 20.02L7.36 13.68L2.73 9.18L9.09 8.26L12 2.5Z"
/>
</Icon>
);
}

export default React.forwardRef<SVGSVGElement, IconProps>(Star);