mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-01 13:33:02 +00:00
7 lines
365 B
TypeScript
7 lines
365 B
TypeScript
import { SolarSystemRawType, SolarSystemStaticInfoRaw } from '@/hooks/Mapper/types';
|
|
|
|
export const getSystemById = (systems: SolarSystemRawType[], systemId: string) => systems.find(x => x.id === systemId);
|
|
|
|
export const getSystemStaticById = (systems: SolarSystemStaticInfoRaw[], systemId: string) =>
|
|
systems.find(x => x.solar_system_id.toString() === systemId);
|