mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
21 lines
410 B
TypeScript
21 lines
410 B
TypeScript
import React from 'react';
|
|
|
|
import { Button } from '@grafana/ui';
|
|
|
|
import { StorageView } from './types';
|
|
|
|
interface Props {
|
|
onPathChange: (p: string, v?: StorageView) => void;
|
|
}
|
|
|
|
export function AddRootView({ onPathChange }: Props) {
|
|
return (
|
|
<div>
|
|
<div>TODO... Add ROOT</div>
|
|
<Button variant="secondary" onClick={() => onPathChange('/')}>
|
|
Cancel
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|