'use client' import type { FC } from 'react' import { useState } from 'react' import { RiCalendarScheduleLine, RiFileHistoryLine, } from '@remixicon/react' import Tooltip from '@/app/components/base/tooltip' import ScheduleModal from '../schedule/schedule-modal' import ScheduleList from '../schedule/schedule-list' import OperationLogsModal from '../operation-logs/operation-logs-modal' type DocumentExtraActionsProps = { datasetId: string documentId: string documentName: string } const DocumentExtraActions: FC = ({ datasetId, documentId, documentName, }) => { const [showScheduleModal, setShowScheduleModal] = useState(false) const [showScheduleList, setShowScheduleList] = useState(false) const [showOperationLogs, setShowOperationLogs] = useState(false) return ( <>
{/* Schedule Button */} {/* Operation History Button */}
{/* Modals */} setShowScheduleModal(false)} datasetId={datasetId} documentId={documentId} documentName={documentName} /> setShowScheduleList(false)} datasetId={datasetId} documentId={documentId} documentName={documentName} onCreateNew={() => { setShowScheduleList(false) setShowScheduleModal(true) }} /> setShowOperationLogs(false)} datasetId={datasetId} documentId={documentId} documentName={documentName} /> ) } export default DocumentExtraActions