import * as React from "react"; import * as Constants from "~/common/constants"; import * as System from "~/components/system"; import * as SVG from "~/common/svg"; import { css } from "@emotion/react"; import Avatar from "~/components/core/Avatar"; const STYLES_CIRCLE = css` height: 32px; width: 32px; border-radius: 32px; background-color: ${Constants.system.black}; color: ${Constants.system.white}; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); position: relative; transition: 200ms ease all; cursor: pointer; user-select: none; :hover { color: ${Constants.system.white}; background-color: ${Constants.system.brand}; } `; const STYLES_ICON_ELEMENT = css` height: 40px; width: 40px; display: inline-flex; align-items: center; justify-content: center; color: #565151; user-select: none; cursor: pointer; :hover { color: ${Constants.system.brand}; } svg { transform: rotate(0deg); transition: 200ms ease transform; } `; const STYLES_HOME = css` display: inline-flex; align-items: center; justify-content: center; user-select: none; margin-right: 24px; margin-left: 24px; font-size: 11px; text-transform: uppercase; font-family: ${Constants.font.codeBold}; `; const STYLES_APPLICATION_HEADER = css` display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; background: ${Constants.system.foreground}; box-shadow: inset 0 -1px 0 0 ${Constants.system.border}; `; const STYLES_LEFT = css` flex-shrink: 0; width: 352px; display: flex; align-items: center; justify-content: flex-start; `; const STYLES_MIDDLE = css` min-width: 10%; width: 100%; padding: 0 24px 0 48px; `; const STYLES_RIGHT = css` flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; `; const STYLES_INPUT = css` width: 100%; max-width: 1024px; font-size: 16px; height: 40px; padding: 0 16px 0 16px; background-color: ${Constants.system.white}; border-radius: 4px; box-shadow: inset 0 0 0 1px #e0e0e0, 0 1px 4px rgba(0, 0, 0, 0.04); border: 0; outline: 0; box-sizing: border-box; transition: 200ms ease all; :focus { box-shadow: 0 1px 4px rgba(0, 71, 255, 0.3), inset 0 0 0 1px ${Constants.system.brand}; outline: 0; } `; export default class ApplicationHeader extends React.Component { render() { const isBackDisabled = this.props.currentIndex === 0 || this.props.history.length < 2; const isForwardDisabled = this.props.currentIndex === this.props.history.length - 1 || this.props.history.length < 2; return (
Slate {Constants.values.version} {} : this.props.onBack} > {} : this.props.onForward} >
{}} size={32} url={this.props.viewer.data.photo} popover={ } />
); } }