Skip to content

Commit

Permalink
Add Storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
rjborba committed Jan 27, 2025
1 parent fbd170e commit a7e6b88
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apps/storybook/stories/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,24 @@ demoIndexes.oramaWithCustomIcons = {
},
}

demoIndexes.multipleIndexes = {
open: true,
resultMap: {
description: (doc) => {
return doc.description || doc.content
},
section: (doc) => {
return doc.genres?.[0] || doc.section
},
},
index: [
{
api_key: 'hdRgZI3j8Z38pImkqYWbAw7SwnrJk8Nt',
endpoint: 'https://cloud.orama.run/v1/indexes/videogames-nb9lk0',
},
{ api_key: 'LerNlbp6379jVKaPs4wt2nZT4MJZbU1J', endpoint: 'https://cloud.orama.run/v1/indexes/docs-orama-b3f5xd' },
],
suggestions: ['How to get started?'],
}

export default demoIndexes

0 comments on commit a7e6b88

Please sign in to comment.