feat(WEB-154): my profile view
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
"use client"
|
||||
import { useEffect } from 'react';
|
||||
|
||||
export function useHandleKeyPress(callback: (event: KeyboardEvent) => void) {
|
||||
useEffect(() => {
|
||||
window.addEventListener('keydown', callback);
|
||||
return () => {
|
||||
window.removeEventListener('keydown', callback);
|
||||
};
|
||||
}, [callback]);
|
||||
}
|
||||
Reference in New Issue
Block a user