MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / createIcon

Function createIcon

icon-component/src/Icon/createIcon.tsx:10–18  ·  view source on GitHub ↗
(options: CreateIconOptions)

Source from the content-addressed store, hash-verified

8}
9
10export function createIcon(options: CreateIconOptions) {
11 const { content, iconProps = {}, viewBox = '0 0 1024 1024' } = options;
12
13 return forwardRef<SVGSVGElement, IconProps>((props, ref) => {
14 return <Icon ref={ref} viewBox={viewBox} {...iconProps} {...props}>
15 {content}
16 </Icon>
17 });
18}

Callers 2

IconEmail.tsxFile · 0.90
IconAdd.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected