mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-01-24 12:22:49 -05:00
25 lines
583 B
TypeScript
25 lines
583 B
TypeScript
// BROKEN
|
|
|
|
//import React from 'react'
|
|
//import Icon from './Icon'
|
|
//import type { IconProps, IconVariant } from './Icon'
|
|
//
|
|
//export const createIconComponent = (
|
|
// name: string,
|
|
// defaultVariant: IconVariant = 'outline'
|
|
//): React.FC<Omit<IconProps, 'name'>> => {
|
|
// const IconComponent: React.FC<Omit<IconProps, 'name'>> = (props) => {
|
|
// return (
|
|
// <Icon
|
|
// name={name}
|
|
// variant={(props as any).variant ?? defaultVariant}
|
|
// {...props}
|
|
// />
|
|
// )
|
|
// }
|
|
//
|
|
// IconComponent.displayName = `${name}Icon`
|
|
// return IconComponent
|
|
//}
|
|
//
|