diff --git a/client/src/components/SettingsButton.jsx b/client/src/components/SettingsButton.jsx index 5ce122d..332c84f 100644 --- a/client/src/components/SettingsButton.jsx +++ b/client/src/components/SettingsButton.jsx @@ -1,21 +1,50 @@ -import { IconButton, Box } from "@chakra-ui/react"; +// This component displays a drop down menu when clicked, with custom functionality +// for 'Add Widget', 'Edit Widgets', and 'Remove Widgets'. This component will +// control settings related to the Widgets on the main canvas. + +import { Button, Menu, Portal } from "@chakra-ui/react"; import { FiSettings } from "react-icons/fi"; export function SettingsButton(props) { + const handleAddWidget = () => { + console.log("Add Widget clicked"); + // TODO: Implement widget-adding logic + } + + const handleEditWidgdets = () => { + console.log("Edit Widgets clicked") + // TODO: Implement widget-editing logic + } + + const handleDeleteWidgets = () => { + console.log("Delete Widgets clicked"); + // TODO: Implement widget-deletion logic + } + return ( - - - + // This uses Chakra's built in menu component + + + + + + + + Add Widget + Edit Widgets + + Delete Widgets + + + + + ); }