MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getType

Function getType

src/components/Grid/imageViewer/index.jsx:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 props.copyScreen(id)
37 }
38 const getType = () => {
39 if (props.isSystemTemplate) {
40 return '模板'
41 } if (props.isPrivate) {
42 return '组件'
43 }
44 return '大屏'
45
46 }
47 const deleteScreen = id => {
48 confirm({
49 title: `确定删除此${getType()}?此操作不可逆!`,

Callers 2

deleteScreenFunction · 0.85
ImageViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected