13
common/resources/client/ui/images/icon.tsx
Executable file
13
common/resources/client/ui/images/icon.tsx
Executable file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
|
||||
type IconProps = {
|
||||
name: string;
|
||||
className?: string;
|
||||
};
|
||||
export function Icon({name, className = 'w-24 h-24'}: IconProps) {
|
||||
return (
|
||||
<svg className={`fill-current inline-block ${className}`}>
|
||||
<use href={`/icons/merged.svg#${name}`} />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user