UNPKG

@selfcommunity/react-ui

Version:

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

39 lines (38 loc) 949 B
import React from 'react'; import { SCUserProfileSettings } from '../../../types'; export interface SettingsProps { /** * Id of user object * @default null */ id?: string; /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Settings to display in the profile * @default [notification, interaction, private_message] */ settings?: SCUserProfileSettings[]; /** * Callback on edit data with success */ onEditSuccess?: () => void; /** * Actions to be inserted at the start * @default null */ startActions?: React.ReactNode | null; /** * Actions to be inserted at the end * @default null */ endActions?: React.ReactNode | null; /** * Any other properties */ [p: string]: any; } export default function Settings(props: SettingsProps): JSX.Element;