Search history

This commit is contained in:
Sean Edmunds
2025-02-20 15:48:13 -06:00
parent c2158b177e
commit f5f0dcf566
4 changed files with 260 additions and 40 deletions

View File

@@ -25,6 +25,7 @@ export function useCommonHooks() {
const [searchValue, setSearchValue] = useState('');
const [providerLabel, setProviderLabel] = useState('Google Search');
const [providerURL, setProviderURL] = useState('https://www.google.com/search?q=');
const [providerPrefix, setProviderPrefix] = useState('/g');
const [currentUser, setCurrentUser] = useLocalStorage<any>({
key: 'user',
defaultValue: {
@@ -77,6 +78,8 @@ export function useCommonHooks() {
setProviderLabel,
providerURL,
setProviderURL,
providerPrefix,
setProviderPrefix,
currentUser,
setCurrentUser,
currentLocation,