export function isKeyboardTargetActive(
  target: HTMLElement | null | undefined,
  reactActive: boolean,
): boolean {
  return reactActive || (target != null && document.activeElement === target);
}
