Download react-page/packages/editor/src/ui/DuplicateButton/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/editor/src/ui/DuplicateButton/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-page/packages/editor/src/ui/DuplicateButton/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/editor/src/ui/DuplicateButton/index.tsx
611 Bytes
| import { IconButton, Tooltip } from '@mui/material'; | |
| import Icon from '@mui/icons-material/FileCopy'; | |
| import React from 'react'; | |
| import { useDuplicateCell, useUiTranslator } from '../../core/components/hooks'; | |
| export const DuplicateButton: React.FC<{ nodeId: string }> = React.memo( | |
| ({ nodeId }) => { | |
| const duplicateCell = useDuplicateCell(nodeId); | |
| const { t } = useUiTranslator(); | |
| return ( | |
| <Tooltip title={t('Duplicate Plugin') ?? ''}> | |
| <IconButton onClick={duplicateCell} aria-label="delete" color="default"> | |
| <Icon /> | |
| </IconButton> | |
| </Tooltip> | |
| ); | |
| } | |
| ); | |