import HelpOutlineOutlined from "@mui/icons-material/HelpOutlineOutlined";
import Tooltip from "@mui/material/Tooltip";
import styles from "@/features/lucky-gift/lucky-gift.module.css";

export function FieldLabel({ help, text }) {
    return (
        <span className={styles.fieldLabel}>
            <span>{text}</span>
            {help ? (
                <Tooltip arrow title={help}>
                    <HelpOutlineOutlined className={styles.helpIcon} fontSize="inherit" />
                </Tooltip>
            ) : null}
        </span>
    );
}
