import styled from 'styled-components'; 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; opacity: ${(props) => (props.hidden ? 0 : 1)}; &:hover { opacity: 1; } `; export default Container;