2022-12-08 15:53:36 +00:00
/ * *
* Internal dependencies
* /
2022-12-14 12:54:29 +00:00
import { RecommendedChannel } from '~/marketing/types' ;
2022-12-08 15:53:36 +00:00
type UseRecommendedChannels = {
loading : boolean ;
data : Array < RecommendedChannel > ;
} ;
2022-12-14 12:19:20 +00:00
// // 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: [],
// };
// };
2022-12-08 15:53:36 +00:00
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 : [
2022-12-09 18:28:13 +00:00
{
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' ,
} ,
2022-12-08 15:53:36 +00:00
] ,
tags : [
{
slug : 'built-by-woocommerce' ,
name : 'Built by WooCommerce' ,
} ,
] ,
} ,
2022-12-09 18:28:13 +00:00
{
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 : [ ] ,
} ,
2022-12-08 15:53:36 +00:00
{
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 : [
2022-12-09 18:28:13 +00:00
{
slug : 'sales-channels' ,
name : 'Sales channels' ,
} ,
2022-12-08 15:53:36 +00:00
] ,
tags : [ ] ,
} ,
] ,
} ;
} ;