react-code-dataset / next.js /packages /next /src /next-devtools /dev-overlay /components /overview /segment-suggestion.tsx
Download next.js/packages/next/src/next-devtools/dev-overlay/components/overview/segment-suggestion.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/dev-overlay/components/overview/segment-suggestion.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/next-devtools/dev-overlay/components/overview/segment-suggestion.tsx
-
curl -L -o segment-suggestion.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/dev-overlay/components/overview/segment-suggestion.tsx
618 Bytes
| 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> | |
| ) | |
| } | |