diff --git a/web/app/components/datasets/metadata/edit-metadat-batch/edited-beacon.tsx b/web/app/components/datasets/metadata/edit-metadat-batch/edited-beacon.tsx new file mode 100644 index 0000000000..f8cbcfd2dd --- /dev/null +++ b/web/app/components/datasets/metadata/edit-metadat-batch/edited-beacon.tsx @@ -0,0 +1,36 @@ +'use client' +import type { FC } from 'react' +import React, { useRef } from 'react' +import { useHover } from 'ahooks' +import { RiResetLeftLine } from '@remixicon/react' +import Tooltip from '@/app/components/base/tooltip' +import { useTranslation } from 'react-i18next' + +type Props = { + onReset: () => void +} + +const EditedBeacon: FC = ({ + onReset, +}) => { + const { t } = useTranslation() + const ref = useRef(null) + const isHovering = useHover(ref) + + return ( +
+ {isHovering ? ( + +
+ +
+
+ ) : ( +
+
+
+ )} +
+ ) +} +export default React.memo(EditedBeacon)