diff --git a/components/Buttons/TileIconButton.tsx b/components/Buttons/TileIconButton.tsx new file mode 100644 index 0000000..01e7c02 --- /dev/null +++ b/components/Buttons/TileIconButton.tsx @@ -0,0 +1,29 @@ +import { cn } from "@/lib/utils"; + +type TileIconButtonProps = React.ButtonHTMLAttributes & { + icon: (props: any) => JSX.Element; + label: string; + active?: boolean; +}; + +export default function TileIconButton({ + icon: Icon, + label, + active, + className, + ...props +}: TileIconButtonProps) { + return ( + + ); +} diff --git a/components/Modals/NewEvent.tsx b/components/Modals/NewEvent.tsx index 600e23d..f8beae3 100644 --- a/components/Modals/NewEvent.tsx +++ b/components/Modals/NewEvent.tsx @@ -10,59 +10,40 @@ import { useNDK } from "@/app/_providers/ndk"; import useCurrentUser from "@/lib/hooks/useCurrentUser"; import { HiChatBubbleLeftEllipsis, - HiBookmarkSquare, + HiSquaresPlus, HiNewspaper, HiCalendarDays, } from "react-icons/hi2"; -import { RiSubtractFill, RiAddFill } from "react-icons/ri"; +import { RiCalendarEventFill } from "react-icons/ri"; import { formatCount } from "@/lib/utils"; import LoginModal from "./Login"; import CreateList from "./CreateList"; import ShortTextNoteModal from "./ShortTextNote"; import CreateCalendarEventModal from "./CreateCalendarEvent"; import CreateCalendarModal from "./CreateCalendar"; +import TileIconButton from "../Buttons/TileIconButton"; + export default function NewEventModal() { const modal = useModal(); return ( - );