<?xml version="1.0"?>
<!--
/**
* Copyright 2018 aheadWorks. All rights reserved.
* See LICENSE.txt for license details.
*/
-->

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Aheadworks\Faq\Block\Article\Article" name="aw_faq.article_title" template="Aheadworks_Faq::title.phtml" />
            <block class="Aheadworks\Faq\Block\Search\Search" name="aw_faq.search" ifconfig="faq/general/faq_search_enabled" template="Aheadworks_Faq::search/search_field.phtml" after="aw_faq.article_title"/>
            <block class="Aheadworks\Faq\Block\Article\Article" name="aw_faq.article" template="Aheadworks_Faq::article.phtml"/>
            <block class="Aheadworks\Faq\Block\Article\Voting" name="aw_faq.voting" template="Aheadworks_Faq::article/voting.phtml">
                <arguments>
                    <argument name="jsLayout" xsi:type="array">
                        <item name="components" xsi:type="array">
                            <item name="awFaqVoting" xsi:type="array">
                                <item name="component" xsi:type="string">Aheadworks_Faq/js/voting</item>
                                <item name="config" xsi:type="array">
                                    <item name="deps" xsi:type="array">
                                        <item name="0" xsi:type="string">awFaqVotingProvider</item>
                                    </item>
                                </item>
                            </item>
                            <item name="awFaqVotingProvider" xsi:type="array">
                                <item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
                            </item>
                        </item>
                    </argument>
                </arguments>
            </block>
            <block class="Aheadworks\Faq\Block\Article\QuestionForm" name="aw_faq.question_form" template="Aheadworks_Faq::article/question_form.phtml" />
        </referenceContainer>
    </body>
</page>