import React, { useEffect, useRef, useState } from "react"; import styled from "@emotion/styled"; import throttle from "lodash/throttle"; /** * * This is similar to Medium's "show and hide" the sidebar if it's overlapping an * element on the page. For our implementation, the only piece of content that can * overlap the