= ({ visibl
{excluded.length === 0 && No systems excluded.
}
{excluded.map(sysId => (
-
+
): KillsWidgetSettings {
diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemKills/hooks/useSystemKillsTemplate.tsx b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemKills/hooks/useSystemKillsTemplate.tsx
new file mode 100644
index 00000000..a9637d48
--- /dev/null
+++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemKills/hooks/useSystemKillsTemplate.tsx
@@ -0,0 +1,17 @@
+// useSystemKillsItemTemplate.tsx
+import { useCallback } from 'react';
+import { VirtualScrollerTemplateOptions } from 'primereact/virtualscroller';
+import { DetailedKill } from '@/hooks/Mapper/types/kills';
+import { KillItemTemplate } from '../components/KillItemTemplate';
+
+export function useSystemKillsItemTemplate(
+ systemNameMap: Record,
+ compact: boolean,
+ onlyOneSystem: boolean,
+) {
+ return useCallback(
+ (kill: DetailedKill, options: VirtualScrollerTemplateOptions) =>
+ KillItemTemplate(systemNameMap, compact, onlyOneSystem, kill, options),
+ [systemNameMap, compact, onlyOneSystem],
+ );
+}
diff --git a/assets/js/hooks/Mapper/types/kills.ts b/assets/js/hooks/Mapper/types/kills.ts
index dac134c7..dd3da266 100644
--- a/assets/js/hooks/Mapper/types/kills.ts
+++ b/assets/js/hooks/Mapper/types/kills.ts
@@ -21,7 +21,6 @@ export interface DetailedKill {
victim_ship_type_id?: number | null;
victim_ship_name?: string;
-
final_blow_char_id?: number | null;
final_blow_char_name?: string;
final_blow_corp_id?: number | null;