/** * Internal dependencies */ import { RecommendedChannel } from './types'; type UseRecommendedChannels = { loading: boolean; data: Array< RecommendedChannel >; }; // // TODO: to be removed. This is to test for loading state. // export const useRecommendedChannels = (): UseRecommendedChannels => { // // TODO: call API here to get data. // // The following are just dummy data for testing now. // return { // loading: true, // data: [], // }; // }; // // TODO: to be removed. This is to test for empty data. // export const useRecommendedChannels = (): UseRecommendedChannels => { // TODO: call API here to get data. // The following are just dummy data for testing now. // return { // loading: false, // data: [], // }; // }; export const useRecommendedChannels = (): UseRecommendedChannels => { // TODO: call API here to get data. // The following are just dummy data for testing now. return { loading: false, data: [ { title: 'Facebook for WooCommerce', description: 'List your products and create ads on Facebook and Instagram.', url: 'https://woocommerce.com/products/facebook/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', direct_install: true, icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/facebook.svg', product: 'facebook-for-woocommerce', plugin: 'facebook-for-woocommerce/facebook-for-woocommerce.php', categories: [ 'marketing' ], subcategories: [ { slug: 'sales-channels', name: 'Sales channels', }, ], tags: [ { slug: 'built-by-woocommerce', name: 'Built by WooCommerce', }, ], }, { title: 'Google Listings and Ads', description: 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.', url: 'https://woocommerce.com/products/google-listings-and-ads/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', direct_install: true, icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg', product: 'google-listings-and-ads', plugin: 'google-listings-and-ads/google-listings-and-ads.php', categories: [ 'marketing' ], subcategories: [ { slug: 'sales-channels', name: 'Sales channels', }, ], tags: [ { slug: 'built-by-woocommerce', name: 'Built by WooCommerce', }, ], }, { title: 'Pinterest for WooCommerce', description: 'Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest.', url: 'https://woocommerce.com/products/pinterest-for-woocommerce/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', direct_install: true, icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/pinterest.svg', product: 'pinterest-for-woocommerce', plugin: 'pinterest-for-woocommerce/pinterest-for-woocommerce.php', categories: [ 'marketing' ], subcategories: [ { slug: 'sales-channels', name: 'Sales channels', }, ], tags: [ { slug: 'built-by-woocommerce', name: 'Built by WooCommerce', }, ], }, { title: 'TikTok for WooCommerce', description: 'Create advertising campaigns and reach one billion global users with TikTok for WooCommerce.', url: 'https://woocommerce.com/products/tiktok-for-woocommerce/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', direct_install: true, icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/tiktok.jpg', product: 'tiktok-for-business', plugin: 'tiktok-for-business/tiktok-for-woocommerce.php', categories: [ 'marketing' ], subcategories: [ { slug: 'sales-channels', name: 'Sales channels', }, ], tags: [], }, { title: 'Amazon, eBay & Walmart Integration for WooCommerce', description: 'Get the official Amazon, eBay and Walmart extension and create, sync and manage multichannel listings directly from WooCommerce.', url: 'https://woocommerce.com/products/amazon-ebay-integration/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', direct_install: false, icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/amazon-ebay.svg', product: 'amazon-ebay-integration', plugin: 'woocommerce-amazon-ebay-integration/woocommerce-amazon-ebay-integration.php', categories: [ 'marketing' ], subcategories: [ { slug: 'sales-channels', name: 'Sales channels', }, ], tags: [], }, ], }; };