-
- {CS.ORDER_BY_TYPES.map(type => (
-
-
- {!hideFilter && (
-
-
- {/* FRESHNESS FIELD */}
- {orderParam === CS.ORDER_BY_TOP && (
-
-
- handleChange({
- key: CS.FRESH_KEY,
- value: e.target.value,
- })
- }
- >
- {CS.FRESH_TYPES.map(time => (
-
- ))}
-
-
- )}
-
- {/* CONTENT_TYPES FIELD */}
- {!claimType && (
-
-
- handleChange({
- key: CS.CONTENT_KEY,
- value: e.target.value,
- })
- }
- >
- {CS.CONTENT_TYPES.map(type => {
- if (type !== CS.CLAIM_CHANNEL || (type === CS.CLAIM_CHANNEL && !channelIdsParam)) {
- return (
-
- );
- }
- })}
-
-
- )}
-
- {/* DURATIONS FIELD */}
- {showDuration && (
-
-
- handleChange({
- key: CS.DURATION_KEY,
- value: e.target.value,
- })
- }
- >
- {CS.DURATION_TYPES.map(dur => (
-
- ))}
-
-
- )}
-
- {/* TAGS FIELD */}
- {!tags && (
-
-
- handleChange({
- key: CS.TAGS_KEY,
- value: e.target.value,
- })
- }
- >
- {[
- CS.TAGS_ALL,
- CS.TAGS_FOLLOWED,
- ...followed,
- ...(followed.includes(tagsParam) || tagsParam === CS.TAGS_ALL || tagsParam === CS.TAGS_FOLLOWED
- ? []
- : [tagsParam]), // if they unfollow while filtered, add Other
- ].map(tag => (
-
- ))}
-
-
- )}
-
- {/* PAID FIELD */}
-
-
- handleChange({
- key: CS.FEE_AMOUNT_KEY,
- value: e.target.value,
- })
- }
- >
-
-
-
- ))}
-
-
-
- {channelIdsInUrl && (
-
-
-
-
- )}
-