text: module.exports = plop => {
    plop.setGenerator("component", {
      description: "Create a component",
      // User input prompts provided as arguments to the template
      prompts: [
        {
          // Raw text input
          type: "input",
          // Variable name for this input
          name: "name",
          // Prompt to display on command line
          message: "What is your component name?",
        },
      ],
      actions: [
        {
          type: "add",
          path: "src/components/{{pascalCase name}}/index.tsx",
          templateFile: "plop-templates/Component.tsx.hbs",
        },
        {
          type: "add",
          path: "src/components/{{pascalCase name}}/{{pascalCase name}}.test.tsx",
          templateFile: "plop-templates/Component.test.tsx.hbs",
        },
        {
          type: "add",
          path: "src/components/{{pascalCase name}}/styles.scss",
        },
      ],
    })
  }
  