10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
|
export const SEARCH_RESULTS = {
|
||
|
articles: [],
|
||
|
apiDocs: [],
|
||
|
examples: [],
|
||
|
}
|
||
|
export const searchBucket = (sectionId: string) =>
|
||
|
sectionId === 'examples' ? 'examples' : sectionId === 'reference' ? 'apiDocs' : 'articles'
|
||
|
export const sectionTypeBucket = (sectionId: string) =>
|
||
|
['examples', 'reference'].includes(sectionId) ? sectionId : 'docs'
|