import { Colors } from "../../styles"; import styled from "styled-components"; import * as React from 'react'; interface Props { color: Colors; fixed?: boolean; } export const AppBarLink = styled.a` margin-left: 10px; text-decoration: none; font-weight: bold; &:hover{ text-decoration: underline; } `; export const StyledAppBar = styled.div` background: ${ props => props.theme.colorPalette[props.color]?.main}; ${AppBarLink}{ color: ${ props => props.theme.colorPalette[props.color]?.fontColor}; } height: 30px; display: flex; align-items: center; justify-content: flex-end; padding: 10px; width: inherit; ${ props => props.fixed && ` position: fixed; top: 0; left: 0; width: -webkit-fill-available; z-index: 9999999999; `} `;