From ad032f11ee80adbb71738618b69deeea61f6503e Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 22 Nov 2024 18:20:27 +0100 Subject: [PATCH] make icon and text inline --- .../Profile/Subcomponents/MarkdownHint.tsx | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Components/Profile/Subcomponents/MarkdownHint.tsx diff --git a/src/Components/Profile/Subcomponents/MarkdownHint.tsx b/src/Components/Profile/Subcomponents/MarkdownHint.tsx new file mode 100644 index 00000000..1b79bbc3 --- /dev/null +++ b/src/Components/Profile/Subcomponents/MarkdownHint.tsx @@ -0,0 +1,34 @@ +import { useState } from 'react' + +export const MarkdownHint = () => { + const [expended, setExpended] = useState(false) + return ( +
setExpended(true)} + title='Markdown is supported' + className='flex tw-flex-row tw-text-gray-400 tw-cursor-pointer tw-items-center' + > + + {expended && ( + + Markdown is support{' '} + + )} +
+ ) +}