Manuel Bustillo
501bb3a81a
All checks were successful
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m12s
Add copyright notice / copyright_notice (pull_request) Successful in 1m32s
Build Nginx-based docker image / build-static-assets (push) Successful in 6m2s
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
|
|
|
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} />
|
|
}
|