feat: profile tab top zappers

closes #662
This commit is contained in:
2024-09-13 11:21:50 +01:00
parent 267ebe2ed9
commit f335d48e69
8 changed files with 69 additions and 20 deletions

View File

@ -16,7 +16,7 @@ import { ProfileLink } from "./ProfileLink";
export interface ProfileImageProps {
pubkey: HexKey;
subHeader?: JSX.Element;
subHeader?: ReactNode;
showUsername?: boolean;
className?: string;
link?: string;

View File

@ -15,6 +15,7 @@ export interface ProfilePreviewProps {
linkToProfile?: boolean;
profileCards?: boolean;
};
subHeader?: ReactNode;
profile?: UserMetadata;
actions?: ReactNode;
className?: string;
@ -50,7 +51,7 @@ export default memo(function ProfilePreview(props: ProfilePreviewProps) {
pubkey={pubkey}
profile={props.profile}
link={options.linkToProfile ?? true ? undefined : ""}
subHeader={options.about ? <div className="about">{user?.about}</div> : undefined}
subHeader={options.about ? <div className="about">{user?.about}</div> : props.subHeader}
showProfileCard={options.profileCards}
/>
{props.actions ?? (