diff --git a/src/components/InfoCard/InfoCard.tsx b/src/components/InfoCard/InfoCard.tsx index 81fc9363d..90f660da4 100644 --- a/src/components/InfoCard/InfoCard.tsx +++ b/src/components/InfoCard/InfoCard.tsx @@ -1,14 +1,18 @@ -import { HoverCard, useMantineTheme} from '@mantine/core'; -import { RichTextEditor, Link } from '@mantine/tiptap'; +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 = ({ content }: InfoCardProps) => { +export const InfoCard = ({ bg, cardProp, content, hoverProp, position }: InfoCardProps) => { const { colorScheme } = useMantineTheme(); const editor = useEditor({ content, @@ -21,17 +25,27 @@ export const InfoCard = ({ content }: InfoCardProps) => { }); return ( - + - +