mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 16:23:25 +01:00
8 lines
246 B
TypeScript
8 lines
246 B
TypeScript
import { useParams } from 'react-router-dom';
|
|
import type { RouteParamsRequest } from './useAppRoutes';
|
|
|
|
export function useActiveRequestId(): string | null {
|
|
const { requestId } = useParams<RouteParamsRequest>();
|
|
return requestId ?? null;
|
|
}
|