"use client";

// _startLoading / _endLoading 대응
export function Loading({ message = "Loading..." }: { message?: string }) {
  return (
    <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/30">
      <div className="rounded-lg bg-white px-8 py-6 shadow-xl flex flex-col items-center gap-3">
        <div className="h-8 w-8 animate-spin rounded-full border-4 border-gray-200 border-t-primary" />
        <span className="text-sm text-gray-600">{message}</span>
      </div>
    </div>
  );
}
