mirror of
https://github.com/basketikun/infinite-canvas.git
synced 2026-08-02 06:51:14 +08:00
e319481976
- 统一调整 admin.ts 文件中的接口定义缩进格式 - 优化 animated-theme-toggler.tsx 组件的代码结构和缩进 - 规范 app-config-modal.tsx 中 JSX 元素的嵌套格式 - 整理 app-providers.tsx 中的组件层级缩进 - 标准化 app-theme.ts 中的对象属性缩进格式
14 lines
280 B
TypeScript
14 lines
280 B
TypeScript
"use client";
|
|
|
|
import { App } from "antd";
|
|
import copy from "copy-to-clipboard";
|
|
|
|
export function useCopyText() {
|
|
const { message } = App.useApp();
|
|
|
|
return (value: string, successText = "已复制") => {
|
|
copy(value);
|
|
message.success(successText);
|
|
};
|
|
}
|