2023-08-22 10:32:40 +02:00
|
|
|
import {INIT_DOCUMENTS} from './actionType';
|
2022-12-28 16:32:30 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Init contact
|
|
|
|
|
* @param {string} lang The lang
|
|
|
|
|
* @param {object} directories Directories
|
|
|
|
|
* @param {object} data The document data
|
|
|
|
|
*/
|
|
|
|
|
export const initDocuments = (lang, directories, data) => {
|
2023-08-22 10:32:40 +02:00
|
|
|
return {
|
|
|
|
|
type: INIT_DOCUMENTS,
|
|
|
|
|
lang,
|
|
|
|
|
directories,
|
|
|
|
|
data,
|
|
|
|
|
};
|
|
|
|
|
};
|