<script lang="ts">
/**
 * Query Provider Component
 *
 * All components that use useQueryClient() or createQuery() must be
 * descendants of this provider.
 */
import { queryClient } from '$shared/api/queryClient';
import { QueryClientProvider } from '@tanstack/svelte-query';

/** Slot content for child components */
let { children } = $props();
</script>

<QueryClientProvider client={queryClient}>
    {@render children?.()}
</QueryClientProvider>
