18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
export default function(
|
|
visitable,
|
|
submitable,
|
|
deletable,
|
|
cancelable,
|
|
policySelector,
|
|
roleSelector
|
|
) {
|
|
return {
|
|
visit: visitable(['/:dc/namespaces/:namespace', '/:dc/namespaces/create']),
|
|
...submitable({}, 'form > div'),
|
|
...cancelable({}, 'form > div'),
|
|
...deletable({}, 'form > div'),
|
|
policies: policySelector(),
|
|
roles: roleSelector(),
|
|
};
|
|
}
|