mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 22:16:49 +01:00
7 lines
192 B
TypeScript
7 lines
192 B
TypeScript
import { useParams } from 'react-router-dom';
|
|
|
|
export function useActiveRequestId(): string | null {
|
|
const { requestId } = useParams<{ requestId?: string }>();
|
|
return requestId ?? null;
|
|
}
|