grafana/public/app/features/storage/AddRootView.tsx
2022-07-05 10:53:41 -07:00

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>
);
}