2017-02-10 11:44:32 +00:00
|
|
|
import React from 'react'
|
|
|
|
import Explicable from '../components/conversation/Explicable'
|
|
|
|
|
2017-02-16 14:08:50 +00:00
|
|
|
export let constructStepMeta = ({question, subquestion, dottedName, name}) => ({
|
2017-01-26 12:19:04 +00:00
|
|
|
// name: dottedName.split(' . ').join('.'),
|
2017-01-26 10:27:24 +00:00
|
|
|
name: dottedName,
|
2017-02-10 11:44:32 +00:00
|
|
|
// question: question || name,
|
|
|
|
question: <Explicable
|
|
|
|
label={question || name}
|
|
|
|
name={name}
|
|
|
|
lightBackground={true}
|
|
|
|
/>,
|
2017-01-24 15:22:40 +00:00
|
|
|
title: name,
|
|
|
|
dependencyOfVariables: ['chai pas'],
|
2017-02-16 14:08:50 +00:00
|
|
|
subquestion,
|
2017-02-10 11:44:32 +00:00
|
|
|
|
2017-02-16 14:08:50 +00:00
|
|
|
// Legacy properties :
|
2017-02-10 11:44:32 +00:00
|
|
|
|
2017-01-24 15:22:40 +00:00
|
|
|
visible: true,
|
2017-02-10 11:44:32 +00:00
|
|
|
// helpText: 'Voila un peu d\'aide poto'
|
2017-01-24 15:22:40 +00:00
|
|
|
})
|