File size: 349 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { DocSearch } from '@docsearch/react'

import { memo } from 'react'

export const WidgetSearch = memo(() => {
  return (
    <DocSearch
      appId={typeof window === 'undefined' ? '' : window.env.ALGOLIA_APP_ID}
      indexName="react-spring_beta"
      apiKey={typeof window === 'undefined' ? '' : window.env.ALGOLIA_API_KEY}
    />
  )
})