fix: add ability to create label in label picker

This commit is contained in:
Mo Tarbin
2026-07-14 12:59:47 -04:00
parent 40270f219a
commit 66d3bc6c7b
2 changed files with 59 additions and 28 deletions

View File

@@ -23,6 +23,7 @@ const BaseOptionPicker = ({
getItemColor,
getTriggerText,
onClear,
menuFooter,
}) => {
const [isOpen, setIsOpen] = useState(false)
const buttonRef = useRef(null)
@@ -242,6 +243,9 @@ const BaseOptionPicker = ({
</Button>
)
})}
{menuFooter && (
<Box sx={{ mt: items.length > 0 ? 0.5 : 0 }}>{menuFooter}</Box>
)}
</Sheet>
</ClickAwayListener>
</Popper>