discord-card-react
Version:
React Discord profile card component
35 lines (34 loc) • 1.77 kB
TypeScript
import { Party } from "../../types";
/**
* Renders a section for displaying activity information.
*
* @param {string} title - The title of the activity
* @param {string} name - The name of the activity
* @param {string} state - The state of the activity
* @param {string} details - Additional details about the activity
* @param {string} largeImage - URL for the large image related to the activity
* @param {string} smallImage - URL for the small image related to the activity
* @param {Party} party - Object containing information about the party related to the activity
* @param {string} elapsedText - The text to display before the elapsed time (default: elapsed)
* @param {"left" | "right"} timeAlignment - The alignment of the elapsed time (default: left)
* @param {number} startTime - The start time of the activity
* @param {string} primaryColor - The color of the button (inherited from card)
* @param {string} buttonText - The text to display on the button (default: null)
* @return {JSX.Element} The rendered section component
*/
declare const ActivitySection: ({ title, name, state, details, largeImage, smallImage, party, elapsedText, timeAlignment, startTime, buttonText, primaryColor, }: {
title?: string | undefined;
applicationId?: string | undefined;
name?: string | undefined;
state?: string | undefined;
details?: string | undefined;
largeImage?: string | undefined;
smallImage?: string | undefined;
party?: Party | undefined;
elapsedText?: string | undefined;
timeAlignment?: "left" | "right" | undefined;
startTime?: number | undefined;
buttonText?: string | undefined;
primaryColor?: string | undefined;
}) => import("react/jsx-runtime").JSX.Element;
export default ActivitySection;