This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | stty -ixon # allow ctrl-s for search | |
| HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
| HISTSIZE=100000 # big big history | |
| HISTFILESIZE=100000 # big big history | |
| shopt -s histappend # append to history, don't overwrite it | |
| # Save and reload the history after each command finishes | |
| PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import * as styledComponents from "styled-components"; | |
| import { ThemedStyledComponentsModule } from "styled-components"; | |
| import { Theme } from "./theme"; | |
| const { | |
| default: styled, | |
| css, | |
| createGlobalStyle, | |
| keyframes, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { RefObject, useEffect, useRef } from "react"; | |
| /** | |
| * Run handler on mouse down in the document on any element *not* contained in the specified elements | |
| */ | |
| export function useClickAway( | |
| onClickAway?: (event: UIEvent) => void, | |
| ...elements: (RefObject<HTMLElement> | HTMLElement | null | undefined)[] | |
| ) { | |
| // hold elements array in a ref so don't need to include in the useEffect deps | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Adapted from https://github.com/react-bootstrap/react-overlays/blob/master/src/usePopper.js | |
| */ | |
| import { | |
| Instance, | |
| Modifier, | |
| Options, | |
| Placement, | |
| popperGenerator, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React, { useCallback, useRef } from "react"; | |
| export function useCombinedRefs<T>( | |
| ...refs: Array<React.Ref<T> | undefined> | |
| ): (instance: T | null) => void { | |
| // save the current refs array in a local ref so the returned callback is stable | |
| const refsRef = useRef(refs); | |
| refsRef.current = refs; | |
| return useCallback(instance => { |