import {createSurvey} from "./SurveyComponent";
import {SurveySimpleData} from "./SurveyData";
import {SurveyComplexData} from "./SurveyData";

export default {
  title: 'Sections/Survey',
  parameters: {
    layout: 'fullscreen',
  },
  args: {
    kicker: 'Schnellumfrage',
    headline: 'Einführung von 2G im Einzelhandel: Was halten Sie davon?',
    copy: 'Hier können Sie abstimmen:',
  }
}

const Template = ({...args}) => {
  return createSurvey({...args});
};

export const SurveySimple = Template.bind({});
SurveySimple.args = {
  data: SurveySimpleData
};

export const SurveyComplex = Template.bind({});
SurveyComplex.args = {
  data: SurveyComplexData
};