diff --git a/src/CopyButton.jsx b/src/CopyButton.jsx
deleted file mode 100644
index 7227617..0000000
--- a/src/CopyButton.jsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from "react";
-import { useButton } from "@react-aria/button";
-import useClipboard from "react-use-clipboard";
-import { ReactComponent as CheckIcon } from "./icons/Check.svg";
-import { ReactComponent as CopyIcon } from "./icons/Copy.svg";
-import classNames from "classnames";
-import styles from "./CopyButton.module.css";
-
-export function CopyButton({ value, className, children, ...rest }) {
- const [isCopied, setCopied] = useClipboard(value, { successDuration: 3000 });
- const { buttonProps } = useButton({
- onPress: () => setCopied(),
- });
-
- return (
-
- );
-}
diff --git a/src/CopyButton.module.css b/src/CopyButton.module.css
deleted file mode 100644
index c4826b5..0000000
--- a/src/CopyButton.module.css
+++ /dev/null
@@ -1,43 +0,0 @@
-.copyButton {
- position: relative;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: transparent;
- cursor: pointer;
- border: 2px solid #0dbd8b;
- border-radius: 8px;
- color: #0dbd8b;
- width: 100%;
- height: 40px;
- transition: border-color 250ms, background-color 250ms;
- padding: 0 20px;
-}
-
-.copyButton span {
- font-weight: 600;
- font-size: 15px;
- margin-right: 10px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- flex: 1;
-}
-
-.copyButton svg {
- flex-shrink: 0;
-}
-
-.copyButton:not(.copied) svg * {
- fill: #0dbd8b;
-}
-
-.copyButton.copied {
- border-color: transparent;
- background-color: #0dbd8b;
- color: white;
-}
-
-.copyButton.copied svg * {
- stroke: white;
-}
diff --git a/src/GridLayoutMenu.jsx b/src/GridLayoutMenu.jsx
index a5d5665..f2b48e5 100644
--- a/src/GridLayoutMenu.jsx
+++ b/src/GridLayoutMenu.jsx
@@ -1,5 +1,5 @@
-import React, { useCallback } from "react";
-import { ButtonTooltip, HeaderButton } from "./RoomButton";
+import React from "react";
+import { ButtonTooltip, Button } from "./button";
import { PopoverMenuTrigger } from "./PopoverMenu";
import { ReactComponent as SpotlightIcon } from "./icons/Spotlight.svg";
import { ReactComponent as FreedomIcon } from "./icons/Freedom.svg";
@@ -11,10 +11,10 @@ import { Item } from "@react-stately/collections";
export function GridLayoutMenu({ layout, setLayout }) {
return (
-
+
+
{(props) => (