import './style.css'; import type { MouseEventHandler, ReactNode } from 'react'; export function CreatorFollowButton({ followed, pending = false, disabled = false, followLabel = '关注', followedLabel = '取消关注', onClick, }: { followed: boolean; pending?: boolean; disabled?: boolean; followLabel?: string; followedLabel?: string; onClick: () => void; }) { return ( ); } export function CreatorUserRow({ name, avatarUrl, subtitle, href, onClick, actions, }: { name: string; avatarUrl?: string | null; subtitle?: string; href?: string; onClick?: MouseEventHandler; actions?: ReactNode; }) { const content = ( <> {name} {subtitle && {subtitle}} ); return (
{href ? ( {content} ) : (
{content}
)} {actions &&
{actions}
}
); }