import { styled } from "styled-components"; import { StyledMenuItemProps } from "./types"; export const StyledMenuItemContainer = styled.div` position: relative; ${({ $isActive, $variant, theme }) => $isActive && $variant === "subMenu" && ` &:after{ content: ""; position: absolute; bottom: 0; height: 4px; width: 100%; background-color: ${theme.colors.primary}; border-radius: 2px 2px 0 0; } `}; `; const StyledMenuItem = styled.a` position: relative; display: flex; align-items: center; color: ${({ theme, $isActive }) => ($isActive ? theme.colors.secondary : theme.colors.textSubtle)}; font-size: 16px; font-weight: ${({ $isActive }) => ($isActive ? "600" : "400")}; opacity: ${({ $isDisabled }) => ($isDisabled ? 0.5 : 1)}; pointer-events: ${({ $isDisabled }) => ($isDisabled ? "none" : "inherit")}; ${({ $statusColor, theme }) => $statusColor && ` &:after { content: ""; border-radius: 100%; background: ${theme.colors[$statusColor]}; height: 8px; width: 8px; margin-left: 12px; } `} ${({ $variant }) => $variant === "default" ? ` padding: 0 16px; height: 48px; ` : ` padding-left: 4px; padding-right: 4px; height: 42px; `} &:hover { background: ${({ theme }) => theme.colors.tertiary}; ${({ $variant }) => $variant === "default" && "border-radius: 16px;"}; } `; export default StyledMenuItem;