Files
mtdb_movie/common/resources/client/ui/images/icon.tsx
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

14 lines
296 B
TypeScript
Executable File

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>
);
}