import { toKebabCase } from '../../../lib/toKebabCase.js';
var prefix = "data-visual-state-";
function fillResult(result, key, value) {
    if (value) {
        result["".concat(prefix).concat(toKebabCase(key))] = '';
    }
    return result;
}
export function getVisualStateDataAttributes(attributes) {
    return Object.entries(attributes).reduce(function (previousValue, currentValue) { return fillResult(previousValue, currentValue[0], currentValue[1]); }, {});
}
//# sourceMappingURL=getVisualStateDataAttributes.js.map