@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
44 lines (38 loc) • 1.43 kB
TypeScript
import { BoxProps } from '@mui/material';
import { SCUserType } from '@selfcommunity/types';
export interface AccountDeleteProps extends BoxProps {
/**
* Callback when logout rejecting policy document
*/
onLogout?: () => void;
/**
* Callback when delete account rejecting policy document
*/
onDeleteAccount?: (user?: SCUserType) => void;
/**
* Any other properties
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS AccountDelete component. Learn about the available props and the CSS API.
*
*
* This component allows users to display the logic behind user deletion.
* Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/AccountDelete)
#### Import
```jsx
import {AccountDelete} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCAccountDelete` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCAccountDelete-root|Styles applied to the root element.|
|message|.SCAccountDelete-message|Styles applied to the message element section.|
|confirm|.SCAccountDelete-confirm|Styles applied to the confirm element section.|
|button|.SCAccountDelete-button|Styles applied to the button element.|
* @param inProps
*/
export default function AccountDelete(inProps: AccountDeleteProps): JSX.Element;