import styled from "styled-components"; import { Box, Flex, Text } from "rimble-ui"; import { baseColors, colors } from "../../../themes"; export interface NavItemStyledProps { active: boolean; subNavActive?: boolean; open?: boolean; } export const NavItemStyled = styled(Box)` a { background-color: ${(props) => (props.active ? baseColors.white : "none")}; border-radius: 4px; display: block; padding: 12px; text-decoration: none; &:hover { background-color: ${baseColors.white}; text-decoration: none; svg { fill: ${colors.primary.base}; } } } `; export const NavItemTabsStyled = styled(Box)` cursor: pointer; svg { fill: ${(props) => (props.active ? colors.primary.base : colors.midGray)}; } &:hover { background-color: ${baseColors.white}; text-decoration: none; svg { fill: ${colors.primary.base}; } } `; export const SubNavItemStyled = styled(Box)` a { background-color: ${(props) => (props.active ? colors.primary.border : "none")}; border-radius: 4px; color: ${colors.midGray}; display: block; padding: 8px 4px; text-decoration: none; &:hover { background-color: ${colors.primary.border}; text-decoration: none; } } `; export interface NavItemPrimaryProps { active: boolean; icon: React.FunctionComponent; text: string; } export const NavItemPrimary: React.FunctionComponent = (props) => { const { active, icon, text } = props; const Icon = icon; return ( {text} ); };