11import { useAdapterName } from "./useAdapterName" ;
22
33type MarketingContent = {
4- tutorial : {
5- link : {
6- title : string ;
7- url : string ;
8- } ;
9- tooltip : {
10- title : string ;
11- description : string ;
12- closeButton ?: string ;
13- video ?: {
14- cloudName : string ;
15- publicId : string ;
16- poster : string ;
17- } ;
18- } ;
4+ tutorial ?: {
5+ url : string ;
196 } ;
207 masterSliceLibrary ?: {
218 exampleLinkUrl : string ;
@@ -27,21 +14,7 @@ type MarketingContent = {
2714const CONTENT_BY_ADAPTER : Record < string , MarketingContent > = {
2815 "@slicemachine/adapter-next" : {
2916 tutorial : {
30- link : {
31- title : "Learn Prismic" ,
32- url : "https://prismic.io/academy/prismic-and-nextjs" ,
33- } ,
34- tooltip : {
35- title : "Need Help?" ,
36- description :
37- "Learn how to turn a Next.js website into a page builder powered by Prismic." ,
38- closeButton : "Got it" ,
39- video : {
40- cloudName : "dmtf1daqp" ,
41- publicId : "Tooltips/pa-course-overview_eaopsn" ,
42- poster : "/prismic-academy-101.png" ,
43- } ,
44- } ,
17+ url : "https://prismic.dev/course/next" ,
4518 } ,
4619 masterSliceLibrary : {
4720 exampleLinkUrl : "https://slicify-app.vercel.app/slice-library" ,
@@ -51,24 +24,20 @@ const CONTENT_BY_ADAPTER: Record<string, MarketingContent> = {
5124 "https://res.cloudinary.com/dmtf1daqp/video/upload/v1715957263/Slice_library_video_oemhy0.mp4" ,
5225 } ,
5326 } ,
54- } ;
55-
56- const DEFAULT_CONTENT : MarketingContent = {
57- tutorial : {
58- link : {
59- title : "Learn Prismic" ,
60- url : "https://youtube.com/playlist?list=PLUVZjQltoA3wnaQudcqQ3qdZNZ6hyfyhH" ,
27+ "@slicemachine/adapter-nuxt" : {
28+ tutorial : {
29+ url : "https://prismic.dev/course/nuxt" ,
6130 } ,
62- tooltip : {
63- title : "Need Help?" ,
64- description :
65- "Follow our Quick Start guide to learn the basics of Slice Machine ",
31+ } ,
32+ "@slicemachine/adapter-sveltekit" : {
33+ tutorial : {
34+ url : "https://prismic.dev/course/sveltekit ",
6635 } ,
6736 } ,
6837} ;
6938
7039export function useMarketingContent ( ) : MarketingContent {
7140 const adapterName = useAdapterName ( ) ;
7241
73- return CONTENT_BY_ADAPTER [ adapterName ] ?? DEFAULT_CONTENT ;
42+ return CONTENT_BY_ADAPTER [ adapterName ] ?? { } ;
7443}
0 commit comments