20 lines
354 B
JavaScript
20 lines
354 B
JavaScript
|
export const getCanCreateProjectSnippetMock = (createSnippet = false) => ({
|
||
|
data: {
|
||
|
project: {
|
||
|
userPermissions: {
|
||
|
createSnippet,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export const getCanCreatePersonalSnippetMock = (createSnippet = false) => ({
|
||
|
data: {
|
||
|
currentUser: {
|
||
|
userPermissions: {
|
||
|
createSnippet,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|