import { useLogStore } from 'contexts/log' import { useRef, useState } from 'react' import { FaCopy, FaEraser } from 'react-icons/fa' import { copy } from 'utils/clipboard' import type { LogItem } from '../contexts/log' import { removeLogItem, setLogItemList } from '../contexts/log' import { Button } from './Button' import { Tooltip } from './Tooltip' export interface LogModalProps { tempLogItem?: LogItem } export const LogModal = (props: LogModalProps) => { const logs = useLogStore() const [isChecked, setIsChecked] = useState(false) const checkBoxRef = useRef(null) const handleCheckBox = () => { checkBoxRef.current?.click() } return (
) }