mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-01 18:19:03 +01:00
98185247b8
Port e89317d4c1
Co-authored-by: Renaud Chaput <renchap@gmail.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
import { useLinks } from 'flavours/glitch/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}
|
|
/>
|
|
);
|
|
};
|