mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-26 09:29:36 +02:00
Optimized a few components
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
export function useActiveRequestId(): string | null {
|
||||
const { requestId } = useParams<{ requestId?: string }>();
|
||||
return requestId ?? null;
|
||||
}
|
||||
Reference in New Issue
Block a user