Add Paul's Toolbox Contents

This commit is contained in:
2024-03-01 18:33:29 +08:00
parent 65b2b86b78
commit 3ef694a468
28 changed files with 1534 additions and 366 deletions
+28
View File
@@ -0,0 +1,28 @@
import { IconSad } from "~assets/icons";
import type { PropsWithChildren } from "react";
import styles from "./placeholder.module.less";
interface PlaceholderProps extends PropsWithChildren {
className?: string;
show?: boolean;
value: string;
}
function Placeholder({ className, show, value, children }: PlaceholderProps) {
if (show === undefined || show) {
return (
<div className={styles.placeholder}>
<IconSad />
<p>{value}</p>
</div>
);
}
return (
<div className={className}>
{children}
</div>
);
}
export default Placeholder;