UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

62 lines (61 loc) 1.72 kB
import React from 'react'; import { AccountCredentialProps } from './AccountCredentials'; import { AccountDeleteButtonProps } from '../../AccountDeleteButton'; import { LanguageSwitcherProps } from '../../../shared/LanguageSwitcher'; export interface AccountProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Handles create association callback * @param provider */ handleAssociationCreate?: (provider: any) => void; /** * If true, shows email and password section * @default false */ showCredentialsSection?: boolean; /** * If true, shows social account section * @default true */ showSocialAccountSection?: boolean; /** * If true, shows language switcher * @default false */ showLanguageSwitcher?: boolean; /** * Props to apply to LanguageSwitcher component * @default {} */ LanguageSwitcherProps?: LanguageSwitcherProps; /** * Actions to be inserted before credentials section * @default null */ startActions?: React.ReactNode | null; /** * Actions to be inserted after social associations section * @default null */ endActions?: React.ReactNode | null; /** * Props to apply to Account credential section * @default {} */ AccountCredentialProps?: AccountCredentialProps; /** * Props to apply to Account delete button * @default {} */ AccountDeleteButtonProps?: AccountDeleteButtonProps; /** * Any other properties */ [p: string]: any; } export default function Account(props: AccountProps): JSX.Element;