This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ServerResponse } from "http"; | |
interface CacheControlConfig { | |
sMaxAge?: number; | |
maxAge?: number; | |
staleWhileRevalidate?: boolean | number; | |
publicCache?: boolean; | |
privateCache?: boolean; | |
immutable?: boolean; | |
noCache?: boolean; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useRef, useEffect } from 'react'; | |
import places from 'places.js'; | |
// Custom component for React implementation with Hooks for Places.js | |
const AlgoliaPlaces = ({ | |
inputComponent = input, | |
placeholder, | |
options, | |
initialValue, |
NewerOlder