mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
19 lines
508 B
TypeScript
19 lines
508 B
TypeScript
import { asset } from '../../core/blitzkrieg/asset';
|
|||
|
|
import { GenericTankComponentButton } from './GenericTankComponentButton';
|
||
|
|
import { TankComponentButtonProps } from './TankComponentButton';
|
||
|
|
|
||
|
|
interface ConsumableButtonProps extends TankComponentButtonProps {
|
||
|
|
consumable: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function ConsumableButton({
|
||
|
|
consumable,
|
||
|
|
...props
|
||
|
|
}: ConsumableButtonProps) {
|
||
|
|
return (
|
||
|
|
<GenericTankComponentButton
|
||
|
|
icon={asset(`icons/consumables/${consumable}.webp`)}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|