@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
43 lines (42 loc) • 1.13 kB
TypeScript
import React from 'react';
import { SCUserProfileFields } from '../../../types';
export interface PublicInfoProps {
/**
* Id of user object
* @default null
*/
id?: string;
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* User fields to display in the profile
* @default [real_name, date_joined, date_of_birth, website, description, bio]
*/
fields?: SCUserProfileFields[];
/**
* Callback on edit data with success
*/
onEditSuccess?: (editedField?: Record<string, any>) => void;
/**
* Callback on edit data with error
*/
onEditFailure?: (editedField?: Record<string, any>) => 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 PublicInfo(props: PublicInfoProps): JSX.Element;