import styled from 'styled-components'; import { Styles } from 'styled-components/dist/types'; import { colors } from '../../config.json'; import * as Cell from './cell'; const indicatorStyles: Styles< React.DetailedHTMLProps, HTMLDivElement> > = { width: '16px', height: '16px', borderRadius: '8px', margin: '0 12px 0 4px', }; const StyledRelayStatus = styled.div<{ $active: boolean }>(indicatorStyles, (props) => ({ backgroundColor: props.$active ? colors.green90 : colors.red95, })); const TickIcon = styled(Cell.Icon)({ marginLeft: '3px', marginRight: '8px', }); interface IProps { active: boolean; selected: boolean; } export default function RelayStatusIndicator(props: IProps) { return props.selected ? ( ) : ( ); } export const SpecialLocationIndicator = styled.div(indicatorStyles, { backgroundColor: colors.white90, });