- Added support for setting avatar border color and gradient in user profile settings. - Introduced new hooks for managing user profile styles and fetching metadata from avatars. - Implemented an AngleSelector component for selecting gradient direction. - Updated RoomNavItem to display parent space information for direct messages. - Improved caching mechanism for user banners and profile styles. - Refactored image metadata handling to include new profile style attributes.
11 lines
372 B
TypeScript
11 lines
372 B
TypeScript
import React, { ComponentProps } from 'react';
|
|
import { Text, as } from 'folds';
|
|
import classNames from 'classnames';
|
|
import * as css from './styles.css';
|
|
|
|
export const NavItemContent = as<'span', ComponentProps<typeof Text>>(
|
|
({ className, ...props }, ref) => (
|
|
<Text className={classNames(css.NavItemContent, className)} size="T300" {...props} ref={ref} />
|
|
)
|
|
);
|