// (C) 2026 GoodData Corporation
/**
 * Creates the RequestOpenDensityDialog command.
 *
 * @remarks
 * Dispatching this command will open the content density dialog.
 *
 * @param correlationId - specify correlation id to use for this command
 *
 * @alpha
 */
export function requestOpenDensityDialog(correlationId) {
    return {
        type: "GDC.DASH/CMD.OPEN_DENSITY_DIALOG",
        correlationId,
    };
}
/**
 * Creates the ChangeDashboardDensity command.
 *
 * @remarks
 * Dispatching this command will change the dashboard density setting for the current user.
 * The value is persisted in localStorage and will be used on the next dashboard load,
 * taking priority over the theme's default density setting.
 *
 * @param density - density value to set
 * @param correlationId - specify correlation id to use for this command. this will be included in all
 *  events that will be emitted during the command processing
 *
 * @alpha
 */
export function changeDashboardDensity(density, correlationId) {
    return {
        type: "GDC.DASH/CMD.CHANGE_DENSITY",
        correlationId,
        payload: {
            density,
        },
    };
}
