mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-09 07:55:46 +00:00
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import React from 'react';
|
|
import { GenericEntityProperties } from '../../entity/shared/types';
|
|
|
|
const PreviewContext = React.createContext<GenericEntityProperties | null>(null);
|
|
export default PreviewContext;
|
|
|
|
export function usePreviewData() {
|
|
return React.useContext(PreviewContext);
|
|
}
|