"use client";

import { AppStorage } from "@/data/storage/app/app_storage";

export async function getFirstRechargeOfferBannerDismissed(
  userId: string | null | undefined,
): Promise<boolean> {
  const result = await AppStorage.getFirstRechargeOfferBannerDismissed(userId);
  return result.success ? result.data : false;
}

export function recordFirstRechargeOfferBannerDismissed(
  userId: string | null | undefined,
): Promise<unknown> {
  return AppStorage.recordFirstRechargeOfferBannerDismissed(userId);
}
