export const CUSTOMER_CREATE_JOB_PATH = '/customer/jobs/create';

/** Customer portal job-create URL with optional category pre-selected. */
export function buildCreateJobUrl(categoryId?: string) {
  return categoryId
    ? `${CUSTOMER_CREATE_JOB_PATH}?categoryId=${categoryId}`
    : CUSTOMER_CREATE_JOB_PATH;
}

/** Public CTAs: sign in first, then create a job in the customer portal. */
export function buildPostJobAuthUrl(categoryId?: string) {
  return `/login?redirect=${encodeURIComponent(buildCreateJobUrl(categoryId))}`;
}
