import React, { memo } from 'react'; import CheckboxButton from '~/components/ui/CheckboxButton'; import { useBadgeRowContext } from '~/Providers'; import { VectorIcon } from '~/components/svg'; import { useLocalize } from '~/hooks'; function FileSearch() { const localize = useLocalize(); const { fileSearch } = useBadgeRowContext(); const { toggleState: fileSearchEnabled, debouncedChange, isPinned } = fileSearch; return ( <> {(fileSearchEnabled || isPinned) && ( } /> )} ); } export default memo(FileSearch);