import React, { useState } from 'react'; import { useTranslation } from 'next-i18next'; import { Collapse } from 'reactstrap'; export const SearchHelp = (): JSX.Element => { const { t } = useTranslation(); const [isOpen, setIsOpen] = useState(false); return ( <>
word1 word2
({ t('search_help.and.syntax help') })
{ t('search_help.and.desc', { word1: 'word1', word2: 'word2' }) }
"This is GROWI"
({ t('search_help.phrase.syntax help') })
{ t('search_help.phrase.desc', { phrase: 'This is GROWI' }) }
-keyword
{ t('search_help.exclude.desc', { word: 'keyword' }) }
prefix:/user/
{ t('search_help.prefix.desc', { path: '/user/' }) }
-prefix:/user/
{ t('search_help.exclude_prefix.desc', { path: '/user/' }) }
tag:wiki
{ t('search_help.tag.desc', { tag: 'wiki' }) }
-tag:wiki
{ t('search_help.exclude_tag.desc', { tag: 'wiki' }) }
); };