import SocialCard from '@/components/SocialCard' import RootLayout from '@/components/RootLayout'; import { api } from "@/utils/api"; import { useSession } from 'next-auth/react'; import React from 'react'; export default function Links() { const {status} = useSession(); // trpc hooks const { data: linkData } = api.links.getAll.useQuery() const deleteMutation = api.links.delete.useMutation() return (
{ linkData && linkData.length > 0 ? linkData.map((v) => { return { deleteMutation.mutate(v.id) }} /> }) :

Uh oh!

There's nothing here :(

}
) }