import styled, { css, keyframes } from 'styled-components'; const closeToolbar = keyframes` from { pointer-events: auto; opacity: 1; } to { pointer-events: none; opacity: 0; } `; export const Container = styled('div')<{ displayMode: string; hidden: boolean; }>` position: fixed; top: 86px; left: ${props => (props.displayMode === 'normal' ? '267px' : 0)}; right: 0; margin: auto; max-width: 572px; width: 100%; height: 54px; border-radius: 4px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.38); background-color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; z-index: 2; transition: all 225ms ease-in-out; ${props => props.hidden ? css` animation: ${closeToolbar} 3s forwards; ` : ''} `; export const ToggleButton = styled.div` position: fixed; right: 20px; bottom: 15px; z-index: 2; box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.32); border-radius: 40px; width: 80px; height: 80px; `;