Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client
Something went wrong. Try again.
799 B · 32 lines
TSX
at main
123456789101112131415161718192021222324252627282930313233import {useLingui} from '@lingui/react/macro'
import {HITSLOP_10} from '#/lib/constants'import {Button, ButtonIcon} from '#/components/Button'import {PageText_Stroke2_Corner0_Rounded as PageText} from '#/components/icons/PageText'
/** * Quick toggle for the thread reader view, shown when the thread contains an * OP self-thread chain. */export function HeaderReaderToggle({ active, onPress,}: { active: boolean onPress: () => void}) { const {t: l} = useLingui()
return ( <Button label={active ? l`Exit reader view` : l`Read as one post`} size="small" variant="ghost" color={active ? 'primary' : 'secondary'} shape="round" hitSlop={HITSLOP_10} onPress={onPress}> <ButtonIcon icon={PageText} size="md" /> </Button> )}