import {forwardRef} from 'react'; import styled from '@emotion/styled'; import space from 'sentry/styles/space'; interface ListeItemProps extends React.HTMLAttributes { padding?: string; symbol?: React.ReactElement; } const ListItem = styled( forwardRef( ({symbol, children, padding: _padding, ...props}, ref) => (
  • {symbol && {symbol}} {children}
  • ) ) )` position: relative; ${p => p.symbol && `padding-left: ${p.padding ?? space(4)};`} `; const Symbol = styled('div')` display: flex; align-items: center; position: absolute; top: 0; left: 0; min-height: 22.5px; `; export default ListItem;