discord-card-react
Version:
React Discord profile card component
17 lines (16 loc) • 728 B
TypeScript
import React from "react";
import { Role as RoleItem } from "../../types";
/**
* Render a section for displaying roles with an optional alternative title and list of roles.
*
* @param {string} title - Optional title for the section
* @param {React.JSX.Element | React.JSX.Element[]} children - Optional children elements
* @param {Role[]} roles - List of roles to display
* @return {React.JSX.Element} The JSX element representing the role section
*/
declare const RoleSection: ({ title, children, roles, }: {
title?: string | undefined;
children?: React.JSX.Element | React.JSX.Element[] | undefined;
roles?: RoleItem[] | undefined;
}) => import("react/jsx-runtime").JSX.Element;
export default RoleSection;