import processDirectory from "contexts/process/directory"; const { height = 0, width = 0 } = processDirectory.BoxedWine.defaultSize || {}; const configParams = { "inline-default-ondemand-root-overlay": "/wine1.7.55-v8-min-online", ondemand: "root", resolution: `${width}x${height}`, root: "/fullWine1.7.55-v8", }; export const getConfig = (dynamicConfig: Record): string => [...Object.entries(configParams), ...Object.entries(dynamicConfig)] .map(([key, value]) => `${key}=${value}`) .join("&");