when={!!(firstAndLastDate.data?.lastDate &&firstAndLastDate.data?.firstDate &&selectedDate())}
const authQuery = createQuery(() => ({ queryKey: ["auth"], queryFn: async () => { const event = isServer ? getRequestEvent() : null; return handleEden( await eden.api.auth.status.get({ $fetch: { headers: event ? { ...Object.fromEntries(event?.request.headers), } : "", }, }) ); }, }));