Manuel Bustillo 510b3140fd
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 43s
Add copyright notice / copyright_notice (pull_request) Successful in 1m12s
Playwright Tests / test (pull_request) Successful in 4m13s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 5m54s
Add copyright notice
2024-10-30 22:25:36 +00:00

14 lines
367 B
TypeScript

/* Copyright (C) 2024 Manuel Bustillo*/
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} />
}