Component({
    properties: {
        title: {
            type: String,
            value: '',
        },
        previewBg: {
            type: String,
            value: '#f5f5f5',
        },
        previewText: {
            type: String,
            value: '',
        },
        ageRange: {
            type: String,
            value: '',
        },
        difficulty: {
            type: String,
            value: '',
        },
        downloads: {
            type: String,
            value: '',
        },
    },
    methods: {
        onTap() {
            this.triggerEvent('tap');
        },
        onGenerate() {
            this.triggerEvent('generate');
        },
        onFav() {
            this.triggerEvent('fav');
        },
    },
});
