1 | import React from "react";
|
2 | import styles from "./HeaderPopAction.scss";
|
3 | import { Popover } from "antd";
|
4 | /**
|
5 | * -------------------------------------
|
6 | *
|
7 | * -------------------------------------
|
8 | */
|
9 | export default function HeaderPopAction({ Content, text, children, style }) {
|
10 | return (
|
11 | <Popover trigger="click" content={Content}>
|
12 | <div className={styles.wrap} style={style}>
|
13 | <div className={styles.holder}>{children}</div>
|
14 | <span className={styles.text}>{text}</span>
|
15 | </div>
|
16 | </Popover>
|
17 | );
|
18 | }
|