Migrate to Next

This commit is contained in:
2022-11-11 22:41:53 +00:00
parent 58e38dbedd
commit 4aaad4d704
352 changed files with 15583 additions and 21335 deletions

23
components/Icon.js Normal file
View File

@@ -0,0 +1,23 @@
import React from "react";
import classnames from "classnames";
import styles from "./Icon.module.css";
export default function Icon({ children, size, rotate, color }) {
return (
<span
className={classnames(styles.block, {
[styles.sm]: size === "sm",
[styles.lg]: size === "lg",
[styles.xl]: size === "xl",
[styles.primary]: color === "primary",
[styles.dark]: color === "dark",
[styles.success]: color === "success",
[styles.rotate90]: rotate === "90",
[styles.rotate180]: rotate === "180",
[styles.rotate270]: rotate === "270",
})}
>
{children}
</span>
);
}