mirror of https://github.com/hashicorp/consul
14 lines
396 B
JavaScript
14 lines
396 B
JavaScript
export default function(visitable, deletable, creatable, clickable, attribute, collection) {
|
|
return creatable({
|
|
visit: visitable(['/:dc/kv/:kv', '/:dc/kv'], str => str),
|
|
kvs: collection(
|
|
'[data-test-tabular-row]',
|
|
deletable({
|
|
name: attribute('data-test-kv', '[data-test-kv]'),
|
|
kv: clickable('a'),
|
|
actions: clickable('label'),
|
|
})
|
|
),
|
|
});
|
|
}
|