1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-02-13 06:03:49 -05:00

21 lines
429 B
TypeScript
Raw Normal View History

import { useLinks } from 'mastodon/../hooks/useLinks';
export const AccountBio: React.FC<{
note: string;
className: string;
}> = ({ note, className }) => {
const handleClick = useLinks();
if (note.length === 0 || note === '<p></p>') {
return null;
}
return (
<div
className={`${className} translate`}
dangerouslySetInnerHTML={{ __html: note }}
onClickCapture={handleClick}
/>
);
};