mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-07 16:25:37 +00:00
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import { useMemo } from 'react';
|
|
import { useMapRootState } from '@/hooks/Mapper/mapRootProvider';
|
|
|
|
export const useMapGetOption = (option: string) => {
|
|
const {
|
|
data: { options },
|
|
} = useMapRootState();
|
|
|
|
return useMemo(() => options[option], [option, options]);
|
|
};
|