File size: 618 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Tooltip } from '../tooltip/tooltip'
import { InfoIcon } from './segment-explorer'

export function SegmentSuggestion({
  possibleExtension,
  missingGlobalError,
}: {
  possibleExtension: string
  missingGlobalError: boolean
}) {
  const tooltip = missingGlobalError
    ? `No global-error.${possibleExtension} found: Add one to ensure users see a helpful message when an unexpected error occurs.`
    : null
  return (
    <span className="segment-explorer-suggestions">
      <Tooltip className="segment-explorer-suggestions-tooltip" title={tooltip}>
        <InfoIcon />
      </Tooltip>
    </span>
  )
}