import styled from '@emotion/styled'; import clsx from 'clsx'; import { TranslateResult } from 'i18n-calypso'; type DropdownOptionProps = { children: React.ReactNode; className?: string; title?: TranslateResult; }; const Container = styled.div` & span.title, &:visited span.title, &:hover span.title { color: var( --color-text ); } span { color: var( --studio-green-60 ); } .title { margin-right: 4px; line-height: 20px; } .is-highlighted & { background-color: #f6f7f7; } `; const DropdownOption = ( { children, className, title }: DropdownOptionProps ) => { if ( ! title ) { return null; } return ( { title } { children } ); }; export default DropdownOption;