import { Capacitor } from "@capacitor/core";
import { SplashScreen } from "@capacitor/splash-screen";

export default defineNuxtPlugin(() => {
  if (!Capacitor.isNativePlatform()) {
    return;
  }

  void SplashScreen.hide().catch(() => {
    // Ignore hide errors if the native splash is already gone.
  });
});
