diff --git a/libs/remix-ui/workspace/src/lib/components/tooltipInput.tsx b/libs/remix-ui/workspace/src/lib/components/tooltipInput.tsx new file mode 100644 index 0000000000..443e98dbdd --- /dev/null +++ b/libs/remix-ui/workspace/src/lib/components/tooltipInput.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react' +import { ButtonGroup, Dropdown } from 'react-bootstrap' + +export function DeployButton (props: DeployButtonProps) { + const [showOptions, setShowOptions] = useState(false) + + const toggleOptions = () => { + setShowOptions(!showOptions) + } + + return ( + <> + { props.deployOptions && (props.deployOptions || []).length > 0 ? + + + + + { + (props.deployOptions).map(({ title, active }, index) => { + props.setSelectedIndex(index) + toggleOptions() + }} key={index}> { props.selectedIndex === index ? ✓ {title} : {title} }) + } + + : + + } + + ) +} \ No newline at end of file