| 1 | import { useContext } from "react"; |
| 2 | import { ButtonSubtext } from "."; |
| 3 | import { IdeMessengerContext } from "../context/IdeMessenger"; |
| 4 | |
| 5 | function AddModelButtonSubtext() { |
| 6 | const ideMessenger = useContext(IdeMessengerContext); |
| 7 | |
| 8 | return ( |
| 9 | <ButtonSubtext> |
| 10 | This will update your{" "} |
| 11 | <span |
| 12 | className="cursor-pointer underline" |
| 13 | onClick={() => |
| 14 | ideMessenger.post("config/openProfile", { |
| 15 | profileId: undefined, |
| 16 | }) |
| 17 | } |
| 18 | > |
| 19 | config file |
| 20 | </span> |
| 21 | </ButtonSubtext> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export default AddModelButtonSubtext; |