<template>
    <reviewBlock
        :customHeaderText="headerText"
        :content="displayContent"
        @edit-clicked="editClicked" />
</template>

<script>
import reviewBlock from "@/layouts/payment-method/review-dropdown/review-block/review-block";

export default {
    name: "schedule-review",
    props: {
        cmsWidgetName: String,
        appointmentType: String,
    },
    data() {
        return {};
    },
    methods: {
        editClicked() {
            this.$emit("edit-clicked");
        },
    },
    computed: {
        displayContent() {
            return [
                this.getCmsContent(this.cmsWidgetName, "BodyText"),
                this.getCmsContent(this.cmsWidgetName, "BodyText2"),
            ];
        },
        headerText() {
            return this.getCmsContent(this.cmsWidgetName, "HeaderText");
        },
    },
    components: {
        reviewBlock,
    },
};
</script>
