mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00

* fix: tool name cannot startwith number * fix: chatbox update * fix: chatbox * perf: drag ui * perf: drag component * drag component
15 lines
422 B
TypeScript
15 lines
422 B
TypeScript
import { DragHandleIcon } from '@chakra-ui/icons';
|
|
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
import { DraggableProvided } from 'react-beautiful-dnd';
|
|
|
|
const DragIcon = ({ provided }: { provided: DraggableProvided }) => {
|
|
return (
|
|
<Box {...provided.dragHandleProps}>
|
|
<DragHandleIcon color={'myGray.500'} _hover={{ color: 'primary.600' }} />
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default DragIcon;
|