( time: SearchTimeKey, )
| 43 | |
| 44 | // `AllTime` is the default and is omitted from the URL to keep links clean. |
| 45 | export const getSearchTimeQueryParam = ( |
| 46 | time: SearchTimeKey, |
| 47 | ): { time?: string } => |
| 48 | time === defaultSearchTime ? {} : { time: searchTimeUrlSlug[time] }; |
| 49 | |
| 50 | export enum SearchProviderEnum { |
| 51 | Posts = 'posts', |
no outgoing calls
no test coverage detected