Manuel Bustillo
d45ba871d8
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 55s
Add copyright notice / copyright_notice (pull_request) Successful in 1m8s
Playwright Tests / test (pull_request) Successful in 3m41s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 6m43s
12 lines
326 B
TypeScript
12 lines
326 B
TypeScript
import * as HeroIcon from '@heroicons/react/24/outline'
|
|
import { ComponentProps } from 'react'
|
|
|
|
type Props = {
|
|
name: keyof typeof HeroIcon
|
|
} & ComponentProps<typeof HeroIcon.AcademicCapIcon>
|
|
|
|
export const Icon = ({ name, ...props }: Props) => {
|
|
const IconComponent = HeroIcon[name]
|
|
return <IconComponent {...props} />
|
|
}
|