Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

696 B
Raw Blame
import React from 'react';
import {Popover as MantinePopover, PopoverProps as MantinePopoverProps} from "@mantine/core";


interface PopoverProps extends MantinePopoverProps {
    children: React.ReactNode;
    title: React.ReactNode;
}

export const Popover = ({children, title, ...props}: PopoverProps) => {
    return (
        <MantinePopover {...props}>
            <MantinePopover.Target>
                <div style={{cursor: "pointer", display: "inline-flex"}}>
                    {children}
                </div>
            </MantinePopover.Target>
            <MantinePopover.Dropdown>
                {title}
            </MantinePopover.Dropdown>
        </MantinePopover>
    );
}