woocommerce/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/useCampaigns.ts

95 lines
3.0 KiB
TypeScript
Raw Normal View History

// // TODO: testing for loading state.
// export const useCampaigns = () => {
// return {
// loading: true,
// data: [],
// };
// };
2022-12-17 13:08:14 +00:00
// TODO: testing for empty data.
// export const useCampaigns = () => {
// return {
// loading: false,
// data: [],
// };
// };
// TODO: testing with campaigns data.
export const useCampaigns = () => {
return {
loading: false,
data: [
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-01',
title: 'Performance Max 01',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-02',
title: 'Performance Max 02',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-03',
title: 'Performance Max 03',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-04',
title: 'Performance Max 04',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-05',
title: 'Performance Max 05',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-06',
title: 'Performance Max 06',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
{
channelSlug: 'google-listings-and-ads',
channelName: 'Google Listings and Ads',
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
id: 'gla-campaign-07',
title: 'Performance Max 07',
description: 'New Zealand',
cost: '$50',
manageUrl: 'https://www.google.com/manage-campaign',
},
],
};
};