import React from 'react' import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {AppBskyLabelerDefs} from '@atproto/api' export {useDialogControl as useReportDialogControl} from '#/components/Dialog' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' import {Button, useButtonContext} from '#/components/Button' import {Divider} from '#/components/Divider' import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' import {ReportDialogProps} from './types' export function SelectLabelerView({ ...props }: ReportDialogProps & { labelers: AppBskyLabelerDefs.LabelerViewDetailed[] onSelectLabeler: (v: string) => void }) { const t = useTheme() const {_} = useLingui() return ( Select moderation service Who do you want to send this report to? {props.labelers.map(labeler => { return ( ) })} ) } function LabelerButton({ title, description, }: { title: string description: string }) { const t = useTheme() const {hovered, pressed} = useButtonContext() const interacted = hovered || pressed const styles = React.useMemo(() => { return { interacted: { backgroundColor: t.palette.contrast_50, }, } }, [t]) return ( {title} {description} ) }