"use client";

import {
  NavigationStorage,
  type PendingChatImageReturn,
} from "@/data/storage/navigation";

export type { PendingChatImageReturn };

export async function savePendingChatImageReturn(input: {
  messageId: string;
  returnUrl: string;
}): Promise<void> {
  await NavigationStorage.savePendingChatImageReturn(input);
}

export async function consumePendingChatImageReturn(): Promise<PendingChatImageReturn | null> {
  return NavigationStorage.consumePendingChatImageReturn();
}
