import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { ActionIcon, createStyles, Grid, Group, Text, Title, Paper, Tooltip, Image, ThemeIcon, useMantineTheme, Anchor, Box, Menu, AspectRatio, } from '@mantine/core'; import { ArrowBack, Trash } from 'tabler-icons-react'; const AppShelf = () => { const Services = loadServices(); const [hovering, setHovering] = useState('none'); const theme = useMantineTheme(); return ( {Services.map((service, i) => ( { setHovering(service.name); }} onHoverEnd={(e) => { setHovering('none'); }} > ({ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0], textAlign: 'center', padding: theme.spacing.xl, borderRadius: theme.radius.md, '&:hover': { backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1], }, })} > Settings Danger zone }> Delete {service.name} {service.name} ))} ); }; export default AppShelf; function loadServices() { return [ { name: 'Radarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Radarr/icon.png', url: 'http://server:7878/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, { name: 'Sonarr', icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Sonarr/icon.png', url: 'http://server:8989/', }, ]; }