mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-06 15:55:36 +00:00
* feat(signatures): Add custom info to system signatures * feat(connections): Add custom info to system connections * feat(Map): Add system signature type * feat(Map): Update wormhole types info * feat(Map): Add undo action for removed systems * feat(Map): Delete systems on Backspace hotkey * feat(Map): Update k-space systems background & styles * feat(Map): Update systems status background styles * feat(Map): add support for new wh type data. add signatures settings modal menu; reworked signatures widget - was added info of wormhole; --------- Co-authored-by: achichenkov <aleksei.chichenkov@telleqt.ai>
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import { OutCommand } from '@/hooks/Mapper/types/mapHandlers.ts';
|
|
import { useMapRootState } from '@/hooks/Mapper/mapRootProvider';
|
|
|
|
export const useDeleteSystems = () => {
|
|
const { outCommand } = useMapRootState();
|
|
|
|
const deleteSystems = (systemIds: string[]) => {
|
|
if (!systemIds || !systemIds.length) {
|
|
return;
|
|
}
|
|
|
|
outCommand({ type: OutCommand.deleteSystems, data: systemIds });
|
|
};
|
|
|
|
return {
|
|
deleteSystems,
|
|
};
|
|
};
|