]: string
}
) => {
const [expanded, setExpanded] = useState(false)
return (
setExpanded(!expanded)}
>
{icon}
{label}
{expanded ? (
Hide
) : (
Show
)}
{Object.entries(subscriptionTypeToDescription).map(([key, value]) =>
NotificationSettingLine(
value,
key as keyof notification_subscription_types,
getUsersSavedPreference(
key as keyof notification_subscription_types
)
)
)}
)
}
return (
Notifications for Watched Markets
setShowWatchModal(true)}
/>
{Section(
,
'New Comments',
watched_markets_explanations_comments
)}
{Section(
,
'New Answers',
watched_markets_explanations_answers
)}
{Section(
,
'Updates & Resolutions',
watched_markets_explanations_market_updates
)}
{Section(
,
'Markets You Created',
watched_markets_explanations_your_markets
)}
Balance Changes
{Section(
,
'Bonuses',
bonuses_explanations
)}
{Section(
,
'Other',
other_balance_change_explanations
)}
General
{Section(
,
'Follows & Followers',
follows_and_followers_explanations
)}
{Section(
,
'Other',
general_explanations
)}
)
}