(props: Props)
| 8 | } |
| 9 | |
| 10 | const Popover = (props: Props) => { |
| 11 | const { className, children, tigger } = props; |
| 12 | |
| 13 | return ( |
| 14 | <PopoverUI.Root modal={false}> |
| 15 | <PopoverUI.Trigger asChild>{tigger}</PopoverUI.Trigger> |
| 16 | <PopoverUI.Portal> |
| 17 | <PopoverUI.Content |
| 18 | asChild |
| 19 | className={`${className || ""} z-[999] p-2 bg-white dark:bg-zinc-700 drop-shadow rounded-lg`} |
| 20 | sideOffset={5} |
| 21 | > |
| 22 | {children} |
| 23 | </PopoverUI.Content> |
| 24 | </PopoverUI.Portal> |
| 25 | </PopoverUI.Root> |
| 26 | ); |
| 27 | }; |
| 28 | |
| 29 | export default Popover; |
nothing calls this directly
no outgoing calls
no test coverage detected