message: refactor: Alert to FC
diff: @@ -6,7 +6,8 @@ export const useWaitTransitionFinish = () => {
  const timeoutRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);
  const { document } = useDOM();
  - const waitTransitionFinish = (
  + const waitTransitionFinish = React.useCallback(
  + (
  element: HTMLElement | null,
  eventHandler: VoidFunction,
  durationFallback: number
  @@ -26,7 +27,9 @@ export const useWaitTransitionFinish = () => {
  timeoutRef.current = setTimeout(eventHandler, durationFallback);
  }
  }
  - };
  + },
  + [document, timeoutRef]
  + );
  return {
  waitTransitionFinish,
  