diff --git a/src/app/(dashboard)/dashboard/providers/[id]/hooks/useReorderByAvailability.ts b/src/app/(dashboard)/dashboard/providers/[id]/hooks/useReorderByAvailability.ts index 5613421837..9527e4b99c 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/hooks/useReorderByAvailability.ts +++ b/src/app/(dashboard)/dashboard/providers/[id]/hooks/useReorderByAvailability.ts @@ -18,9 +18,11 @@ import { useState } from "react"; import { sortConnectionsByAvailability } from "../components/connectionRowHelpers"; import type { ConnectionRowConnection } from "../components/ConnectionRow"; -import { useNotificationStore } from "@/store/notificationStore"; -type NotifyStore = ReturnType; +/** Minimal surface of the notification store this hook needs. */ +interface ReorderNotifier { + error: (message: string) => void; +} export interface UseReorderByAvailabilityParams { connections: ConnectionRowConnection[]; @@ -30,7 +32,7 @@ export interface UseReorderByAvailabilityParams { | ((prev: ConnectionRowConnection[]) => ConnectionRowConnection[]) ) => void; fetchConnections: () => Promise; - notify: NotifyStore; + notify: ReorderNotifier; t: (key: string, params?: Record) => string; }