import React from "react"; import { useAppDispatch, useAppSelector } from "../../store/hook"; import { editor_state, toggle_logs_tab, } from "../../store/features/editorSlice"; import { compiler_state } from "../../store/features/compilerSlice"; import { RiTerminalLine } from "react-icons/ri"; const Footer = () => { const { logs } = useAppSelector(editor_state); const { isCompiling } = useAppSelector(compiler_state); const dispatch = useAppDispatch(); return (
{isCompiling && (
)}
dispatch(toggle_logs_tab())} className="flex items-center cursor-pointer text-gray-400" >
{logs.length > 0 && (
)}
); }; export default Footer;