simplify components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
This commit is contained in:
11
src/components/Spinner.js
Normal file
11
src/components/Spinner.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// components/Spinner.js
|
||||
import { Tag } from "sigpro";
|
||||
import { val } from "../utils.js";
|
||||
|
||||
export const Spinner = (props) => {
|
||||
const { value, ...rest } = props;
|
||||
return If(
|
||||
() => val(value),
|
||||
() => Tag("span", { class: "loading loading-spinner", ...rest })
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user