10 lines
252 B
TypeScript
10 lines
252 B
TypeScript
export function useWarrenPath(): { warrenId: string; path: string } | null {
|
|
const store = useWarrenStore();
|
|
|
|
if (store.current == null) {
|
|
return null;
|
|
}
|
|
|
|
return { warrenId: store.current.warrenId, path: store.current.path };
|
|
}
|