mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-02-28 11:15:58 +08:00
13 lines
311 B
TypeScript
13 lines
311 B
TypeScript
import { IconNames } from './iconNamesType'
|
|
|
|
const Icon = ({ name, className }: { name: IconNames; className?: string }) => {
|
|
const symbolId = `#icon-${name}`
|
|
return (
|
|
<svg aria-hidden='true' className={className}>
|
|
<use href={symbolId} fill='currentColor' />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export default Icon
|