"use client";

import { usePathname } from "next/navigation";

/**
 * Returns the active services base path for the current shell.
 *
 * - Public services: `/services`
 * - Account shop (inside AppShell): `/account/services`
 */
export function useServicesBasePath(): "/services" | "/account/services" {
  const pathname = usePathname();
  if (pathname.startsWith("/account/services")) {
    return "/account/services";
  }
  return "/services";
}
