import * as React from 'react' import styled from 'styled-components' import MediaQuery, { breakpoints } from './media' const BreakpointDebugFloat = styled.div` position: absolute; bottom: 0; left: 0; pointer-events: none; height: 1.4em; opacity: 0.4; font-family: monospace; ` type BPProps = { hue: number bp: string } const Breakpoint = styled.div` padding: 0.1em; display: none; width: 1.5em; text-align: center; background-color: hsl(${(props) => props.hue}, 50%, 50%); ${(props) => MediaQuery({ [props.bp]: `display: inline-block` })} ` const DebugFloater = () => { return { Object.keys(breakpoints).map((x, i, a) => {x}) } } export default DebugFloater