improved iconPicker component + other improvements

This commit is contained in:
daniel31x13
2024-08-19 18:14:09 -04:00
parent 2893d3caf2
commit dc388ebba5
15 changed files with 222 additions and 72 deletions
+21
View File
@@ -0,0 +1,21 @@
import React from "react";
import ClickAwayHandler from "./ClickAwayHandler";
type Props = {
children: React.ReactNode;
onClose: Function;
className?: string;
};
const Popover = ({ children, className, onClose }: Props) => {
return (
<ClickAwayHandler
onClickOutside={() => onClose()}
className={`absolute z-50 ${className || ""}`}
>
{children}
</ClickAwayHandler>
);
};
export default Popover;