feat(web): extract and replace Switch Form components

This commit is contained in:
zhaoying
2026-01-19 14:08:31 +08:00
parent 21ae3cdd15
commit 9353053a23
7 changed files with 106 additions and 66 deletions

View File

@@ -0,0 +1,13 @@
import clsx from "clsx";
import type { FC, ReactNode } from "react";
const LabelWrapper: FC<{ title: string | ReactNode, className?: string; children?: ReactNode}> = ({title, className, children}) => {
return (
<div className={clsx(className)}>
<div className="rb:text-[14px] rb:font-medium rb:leading-5">{title}</div>
{children}
</div>
)
}
export default LabelWrapper