mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: equipment icons
This commit is contained in:
1 parent
b053018958
commit
a1f6bbdf1f
2 files changed
+38
-4
No files matched your search
@@ -18,13 +18,17 @@ type ModuleButtonProps = Omit<ComponentProps<typeof Button>, 'type'> & {
|
||||
type: 'shell';
|
||||
shell: string;
|
||||
}
|
||||
| {
|
||||
type: 'equipment';
|
||||
equipment: number;
|
||||
}
|
||||
);
|
||||
|
||||
export function ModuleButton({
|
||||
selected,
|
||||
style,
|
||||
first = true,
|
||||
last = true,
|
||||
first = false,
|
||||
last = false,
|
||||
rowChild,
|
||||
...props
|
||||
}: ModuleButtonProps) {
|
||||
@@ -51,7 +55,9 @@ export function ModuleButton({
|
||||
src={asset(
|
||||
props.type === 'module'
|
||||
? `icons/modules/${props.module}.webp`
|
||||
: `icons/shells/${props.shell}.webp`,
|
||||
: props.type === 'shell'
|
||||
? `icons/shells/${props.shell}.webp`
|
||||
: `icons/equipment/${props.equipment}.webp`,
|
||||
)}
|
||||
style={{
|
||||
width: 32,
|
||||
|
||||
Reference in new issue
Block a user