16 lines
220 B
TypeScript
16 lines
220 B
TypeScript
|
import React from 'react'
|
||
|
|
||
|
const getGlobal = () => {
|
||
|
try {
|
||
|
return window
|
||
|
} catch {
|
||
|
return globalThis
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const useThingtime = (props?: any) => {
|
||
|
const glob = getGlobal()
|
||
|
|
||
|
return { state: {} }
|
||
|
}
|