export function chatsListPath(cursor, search, archived = false) {
  const query = new URLSearchParams();
  if (cursor) query.set("cursor", cursor);
  if (search?.trim()) query.set("search", search.trim());
  if (archived) query.set("archived", "true");
  const suffix = query.toString();
  return `/threads${suffix ? `?${suffix}` : ""}`;
}

export function projectChatsPath(cursor) {
  const query = new URLSearchParams();
  if (cursor) query.set("cursor", cursor);
  const suffix = query.toString();
  return `/thread-projects${suffix ? `?${suffix}` : ""}`;
}
