Download wp-calypso/packages/components/src/horizontal-bar-list/title-extras.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/horizontal-bar-list/title-extras.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/horizontal-bar-list/title-extras.tsx
-
curl -L -o title-extras.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/horizontal-bar-list/title-extras.tsx
399 Bytes
| import React from 'react'; | |
| import BadgeNew from './sideElements/badge-new'; | |
| type TitleExtrasProps = { | |
| isNew?: boolean; | |
| prefixNodes?: React.ReactNode; | |
| children?: React.ReactNode; | |
| }; | |
| const TitleExtras: React.FC< TitleExtrasProps > = ( { isNew, prefixNodes, children } ) => { | |
| return ( | |
| <> | |
| { prefixNodes } | |
| { isNew && <BadgeNew /> } | |
| { children } | |
| </> | |
| ); | |
| }; | |
| export default TitleExtras; | |