import { joinURL } from 'ufo';

import type { VendorConfig } from './types';

export const formatVendorUrl = (vendorConfig: VendorConfig, ...args: string[]) => {
  return joinURL(vendorConfig.app_url, vendorConfig.metadata?.mountPoint || '', ...args);
};
