/** * This is a generated file. Do not modify it manually. * * @script packages/icon/scripts/prebuild/index.ts * @checksum 75b9f89083a70770e5a05835b62e9be9 */ import * as React from "react"; import { css, cx } from '@leafygreen-ui/emotion'; import { useIdAllocator } from '@leafygreen-ui/hooks'; import { generateAccessibleProps, sizeMap } from '../glyphCommon'; import { LGGlyph } from '../types'; export interface SparkleProps extends LGGlyph.ComponentProps {} const Sparkle = ({ className, size = 16, title, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby, fill, role = 'img', ...props }: SparkleProps) => { const titleId = useIdAllocator({ prefix: 'icon-title' }); const fillStyle = css` color: ${fill}; `; const noFlexShrink = css` flex-shrink: 0; `; const accessibleProps = generateAccessibleProps(role, 'Sparkle', { title, titleId, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby }); return {title && {title}}; }; Sparkle.displayName = 'Sparkle'; Sparkle.isGlyph = true; export default Sparkle;