import React from 'react'; import { FormattedMessage } from 'react-intl'; import { type CreateGroupParams } from 'soapbox/api/hooks'; import List, { ListItem } from 'soapbox/components/list'; import { Form, FormGroup, Stack, Text } from 'soapbox/components/ui'; interface IPrivacyStep { params: CreateGroupParams onChange(params: CreateGroupParams): void } const PrivacyStep: React.FC = ({ params, onChange }) => { const visibility = params.group_visibility || 'everyone'; const onChangePrivacy = (group_visibility: CreateGroupParams['group_visibility']) => { onChange({ ...params, group_visibility }); }; return ( <>
} > } hint={} onSelect={() => onChangePrivacy('everyone')} isSelected={visibility === 'everyone'} /> } hint={} onSelect={() => onChangePrivacy('members_only')} isSelected={visibility === 'members_only'} />
); }; export default PrivacyStep;