mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-11 13:42:56 +01:00
10 lines
238 B
JavaScript
10 lines
238 B
JavaScript
const preview = require('../templates/preview');
|
|
const download = require('../templates/download');
|
|
|
|
module.exports = function(state, emit) {
|
|
if (state.transfer) {
|
|
return download(state, emit);
|
|
}
|
|
return preview(state, emit);
|
|
};
|