Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
export const getSearchParams = (url: string) => { // Create a params object let params = {} as Record<string, string>; new URL(url).searchParams.forEach(function (val, key) { params[key] = val; }); return params; };