mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
5dbbaab3f1
* Use @grafana/scenes WIP * Use @grafana/scenes package * Use released @grafana/scenes * Fix template_srv test
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import React from 'react';
|
|
|
|
import { SceneObject } from '@grafana/scenes';
|
|
import { OptionsPaneCategory } from 'app/features/dashboard/components/PanelEditor/OptionsPaneCategory';
|
|
|
|
export interface Props {
|
|
model: SceneObject;
|
|
}
|
|
|
|
export function SceneObjectEditor({ model }: Props) {
|
|
return (
|
|
<OptionsPaneCategory id="props" title="Properties" forceOpen={1}>
|
|
<model.Editor model={model} key={model.state.key} />
|
|
</OptionsPaneCategory>
|
|
);
|
|
}
|