import { useQuery } from '@tanstack/react-query' import { Container, Stack, Title, Text, SimpleGrid, Group, Button, TextInput, Loader } from '@mantine/core' import { createFileRoute } from '@tanstack/react-router' import { TbPlus, TbSearch } from 'react-icons/tb' import { DashboardLayout } from '@/frontend/components/DashboardLayout' import { AppCard } from '@/frontend/components/AppCard' export const Route = createFileRoute('/apps/')({ component: AppsPage, }) function AppsPage() { const { data: apps, isLoading } = useQuery({ queryKey: ['apps'], queryFn: () => fetch('/api/apps').then((r) => r.json()), }) return ( Applications Manage and monitor all your mobile applications from one place. } style={{ flex: 1 }} radius="md" /> {isLoading ? ( ) : ( {apps?.map((app: any) => ( ))} )} ) }