import { ActionIcon, Box, Stack, Text, Tooltip } from '@mantine/core'; import { useCommonHooks } from 'hooks'; import { useState } from 'react'; import { FiAlertCircle } from 'react-icons/fi'; import { actionIconClasses, boxClasses, textClasses } from 'styles'; function AppSettingsItem({ url, icon, name, enabled, allIcons, }: { url: string; icon: string; name: string; enabled: number; allIcons: any; }) { const Icon = allIcons[icon]; const [textDecoration, setTextDecoration] = useState('none'); const [hover, setHover] = useState(false); const { isMobile, theme } = useCommonHooks(); return ( {enabled === 0 && ( This app is disabled}> )} { setTextDecoration('underline'); setHover(true); }} onMouseOut={() => { setTextDecoration('none'); setHover(false); }} className={boxClasses.appItemBox} > {hover && ( )} {Icon && } {name} {url} ); } export default AppSettingsItem;