import React, { useState } from 'react'; import { FaStar } from 'react-icons/fa'; import { IoMdClose } from 'react-icons/io'; import { setTempData } from '../redux/envReducer'; import { useAppDispatch, useAppSelector } from '../hooks/redux'; import { openUrl } from '@kky002/kky-util'; import { isEdgeBrowser } from '../utils/util'; const RateExtension: React.FC = () => { const dispatch = useAppDispatch() const [isHovered, setIsHovered] = useState(false); const reviewed = useAppSelector(state => state.env.tempData.reviewed) const handleRateClick = () => { dispatch(setTempData({ reviewed: true })) // Chrome Web Store URL for your extension if (isEdgeBrowser()) { openUrl('https://microsoftedge.microsoft.com/addons/detail/lignnlhlpiefmcjkdkmfjdckhlaiajan') } else { openUrl('https://chromewebstore.google.com/webstore/detail/bciglihaegkdhoogebcdblfhppoilclp/reviews') } }; if (reviewed === true || reviewed === undefined) return null; return (

喜欢这个扩展吗?

如果觉得有用,请给我们评分!

); }; export default RateExtension;