From 972b92bf6a8e5a3da467d07c5cbd539460f237c6 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 3 May 2023 21:17:18 +0300 Subject: [PATCH] Implement Log Modal --- components/LogModal.tsx | 155 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 components/LogModal.tsx diff --git a/components/LogModal.tsx b/components/LogModal.tsx new file mode 100644 index 0000000..390b236 --- /dev/null +++ b/components/LogModal.tsx @@ -0,0 +1,155 @@ +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 ( +
+ + +
+ ) +}