Renders a profile's description, which the signed-in user edits in place on their own profile.
f
ProfileDescription(unnamed 0: ProfileDescriptionProps): React.JSX.Element | null
Renders the description in Markdown, or nothing when there is none. On
their own profile, users get a "Who am I?" placeholder instead, and edit it
in place, saved to PATCH /api/me. Other browsers see the change through
the socket's user_updated event.
I
ProfileDescriptionProps
Passed to ProfileDescription by UserPublicProfile.
- description: string | undefined
- isOwnProfile: boolean
-
onSaved: (description: string | undefined) => void
Called with the saved description, undefined once cleared.
Usage
import * as mod from "src/components/profile/ProfileDescription.tsx";