aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/button/IconButton.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/views/common/button/IconButton.tsx')
-rw-r--r--FrontEnd/src/views/common/button/IconButton.tsx29
1 files changed, 0 insertions, 29 deletions
diff --git a/FrontEnd/src/views/common/button/IconButton.tsx b/FrontEnd/src/views/common/button/IconButton.tsx
deleted file mode 100644
index 652a8b09..00000000
--- a/FrontEnd/src/views/common/button/IconButton.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { ComponentPropsWithoutRef } from "react";
-import classNames from "classnames";
-
-import { PaletteColorType } from "@/palette";
-
-import "./IconButton.css";
-
-interface IconButtonProps extends ComponentPropsWithoutRef<"i"> {
- icon: string;
- color?: PaletteColorType;
- large?: boolean;
-}
-
-export default function IconButton(props: IconButtonProps) {
- const { icon, color, className, large, ...otherProps } = props;
-
- return (
- <button
- className={classNames(
- "cru-icon-button",
- large && "large",
- "bi-" + icon,
- color ? "cru-" + color : "cru-primary",
- className,
- )}
- {...otherProps}
- />
- );
-}