import { DefaultMantineColor, HoverCard, HoverCardProps, SystemProp, useMantineTheme} from '@mantine/core'; import { RichTextEditor, RichTextEditorProps, Link } from '@mantine/tiptap'; import { useEditor } from '@tiptap/react'; import StarterKit from '@tiptap/starter-kit'; import { IconInfoCircle } from '@tabler/icons-react'; interface InfoCardProps { bg?: SystemProp; cardProp: Partial; content: string; hoverProp?: Partial; position?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" } export const InfoCard = ({ bg, cardProp, content, hoverProp, position }: InfoCardProps) => { const { colorScheme } = useMantineTheme(); const editor = useEditor({ content, editable: false, editorProps: { attributes: { style: 'padding: 0;' }, }, extensions: [ StarterKit, Link, ], }); return ( ) };