'use client'; import Link from 'next/link'; import { useQuery } from '@tanstack/react-query'; import { getProjects, Project } from '../../lib/api'; export default function ProjectsPage() { const { data: projects, isLoading, isError, error } = useQuery({ queryKey: ['projects'], queryFn: getProjects }); return (

Projects

Browse and open your existing audio projects.

New Project
{isLoading &&

Loading projects...

} {isError &&

{error.message}

} {projects && projects.length === 0 && (
No projects yet. Create one from the backend or CLI.
)} {projects && projects.length > 0 && ( )}
); }