pleroma/app/soapbox/features/ui/components/modals/manage-group-modal/steps/confirmation-step.tsx

44 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-03-08 11:43:16 -08:00
import React from 'react';
import { FormattedMessage } from 'react-intl';
2023-03-08 10:20:20 -08:00
2023-03-08 11:43:16 -08:00
import { Avatar, Divider, Stack, Text } from 'soapbox/components/ui';
2023-03-08 10:20:20 -08:00
2023-03-08 11:43:16 -08:00
interface IConfirmationStep {
group: any
2023-03-08 10:20:20 -08:00
}
2023-03-08 11:43:16 -08:00
const ConfirmationStep: React.FC<IConfirmationStep> = ({ group }) => {
2023-03-08 10:20:20 -08:00
return (
2023-03-08 11:43:16 -08:00
<Stack space={9}>
<Stack space={3}>
<Stack>
<label
className='dark:sm:shadow-inset relative h-24 w-full cursor-pointer overflow-hidden rounded-lg bg-primary-100 text-primary-500 dark:bg-gray-800 dark:text-accent-blue sm:h-36 sm:shadow'
>
{group.header && <img className='h-full w-full object-cover' src={group.header} alt='' />}
</label>
<label className='mx-auto -mt-10 cursor-pointer rounded-full bg-primary-500 ring-2 ring-white dark:ring-primary-900'>
{group.avatar && <Avatar src={group.avatar} size={80} />}
</label>
</Stack>
<Stack>
<Text size='2xl' weight='bold' align='center'>{group.display_name}</Text>
<Text size='md' className='mx-auto max-w-sm'>{group.note}</Text>
</Stack>
</Stack>
<Divider />
2023-03-08 10:20:20 -08:00
<div>
2023-03-08 11:43:16 -08:00
<Text size='3xl' weight='bold' align='center'>
<FormattedMessage id='manage_group.confirmation.title' defaultMessage='Youre all set!' />
</Text>
2023-03-08 10:20:20 -08:00
</div>
2023-03-08 11:43:16 -08:00
</Stack>
2023-03-08 10:20:20 -08:00
);
};
export default ConfirmationStep;