(props)
| 4 | import { Button, Popover, PopoverHeader, PopoverBody } from 'reactstrap'; |
| 5 | |
| 6 | function PopoverItem(props) { |
| 7 | const { id, item } = props; |
| 8 | const [popoverOpen, setPopoverOpen] = useState(false); |
| 9 | |
| 10 | const toggle = () => setPopoverOpen(!popoverOpen); |
| 11 | |
| 12 | return ( |
| 13 | <> |
| 14 | <Button |
| 15 | className="me-1" |
| 16 | color="secondary" |
| 17 | id={'Popover-' + id} |
| 18 | type="button" |
| 19 | > |
| 20 | {item.text} |
| 21 | </Button> |
| 22 | <Popover |
| 23 | placement={item.placement} |
| 24 | isOpen={popoverOpen} |
| 25 | target={'Popover-' + id} |
| 26 | toggle={toggle} |
| 27 | > |
| 28 | <PopoverHeader>Popover Title</PopoverHeader> |
| 29 | <PopoverBody> |
| 30 | Sed posuere consectetur est at lobortis. Aenean eu leo quam. |
| 31 | Pellentesque ornare sem lacinia quam venenatis vestibulum. |
| 32 | </PopoverBody> |
| 33 | </Popover> |
| 34 | </> |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | function PopoverExampleMulti(props) { |
| 39 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…