2022-05-04 17:10:42 +02:00
|
|
|
import {useEditorStore} from './store'
|
2022-05-16 12:43:45 +02:00
|
|
|
import type {ISheet} from '@theatre/core'
|
2022-05-04 17:10:42 +02:00
|
|
|
|
|
|
|
export const refreshSnapshot = useEditorStore.getState().createSnapshot
|
2022-05-16 12:43:45 +02:00
|
|
|
|
|
|
|
export const makeStoreKey = (sheet: ISheet, name: string) =>
|
|
|
|
`${sheet.address.sheetId}:${sheet.address.sheetInstanceId}:${name}`
|