[Update] Migrate to tauri-app(Web UI)

This commit is contained in:
Sakamoto Shiina
2024-07-25 01:01:22 +09:00
parent 25899b63da
commit ebd1a8d70d
342 changed files with 14616 additions and 13428 deletions

9
src-ui/utils/useSvg.jsx Normal file
View File

@@ -0,0 +1,9 @@
import React from "react";
export const useSvg = (svg_component, ...props) => {
const svgWithClass = svg_component
? React.cloneElement(svg_component, ...props)
: null;
return svgWithClass;
};