import { Divider, Group, Modal, Stack, Text } from '@mantine/core'; import { useCommonHooks } from 'hooks'; import { modalClasses } from 'styles'; export function HelpModal({ providerModalOpened, closeProviderModal }: any) { const { theme, providers, setSearchValue, setProviderLabel, setProviderURL } = useCommonHooks(); return ( { closeProviderModal(); setSearchValue(''); setProviderLabel('Google Search'); setProviderURL('https://www.google.com/search?q='); }} style={{ '--color-text-pri': theme.primaryColor, '--color-text-acc': theme.accentColor, '--color-background': theme.backgroundColor, '--color-border': theme.borderColor, '--color-search-background': theme.searchColor, '--image-background': `url(${theme.backgroundImage})`, }} closeOnEscape closeOnClickOutside > Help info

Search Providers

{providers?.map((provider: any) => ( {provider.prefix} {provider.name} ))}
); }