mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-02 14:33:52 +01:00
AddMaterializedViewPanel
This commit is contained in:
parent
59619a856e
commit
b8017763b7
34
src/Explorer/Panes/AddMaterializedViewPanel.tsx
Normal file
34
src/Explorer/Panes/AddMaterializedViewPanel.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import { Dropdown, Stack } from "@fluentui/react";
|
||||
import Explorer from "Explorer/Explorer";
|
||||
import { useDatabases } from "Explorer/useDatabases";
|
||||
import React from "react";
|
||||
|
||||
export interface AddMaterializedViewPanelProps {
|
||||
explorer: Explorer;
|
||||
}
|
||||
export const AddMaterializedViewPanel = (addMaterializedViewPanelProps: AddMaterializedViewPanelProps): JSX.Element => {
|
||||
console.log(useDatabases.getState().databases);
|
||||
console.log(
|
||||
useDatabases.getState().databases.forEach((db) => {
|
||||
console.log(db);
|
||||
console.log(db.collections());
|
||||
}),
|
||||
);
|
||||
|
||||
return (
|
||||
<form className="panelFormWrapper" id="panelMaterializedView">
|
||||
<div className="panelMainContent">
|
||||
<Stack>
|
||||
<Dropdown
|
||||
label="Source container id"
|
||||
placeholder="Choose existing container"
|
||||
options={[]}
|
||||
required
|
||||
styles={{ title: { height: 27, lineHeight: 27 }, dropdownItem: { fontSize: 12 } }}
|
||||
style={{ width: 300, fontSize: 12 }}
|
||||
/>
|
||||
</Stack>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user