mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 23:11:00 +02:00
Merge commit 'a8390532f7' as 'ai-context/workbench-ui'
This commit is contained in:
commit
1a72bfdec0
310 changed files with 56430 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
import React, { useState } from "react";
|
||||
|
||||
import { Plus } from "lucide-react";
|
||||
|
||||
import { Button, Box } from "@chakra-ui/react";
|
||||
|
||||
import EditDialog from "./EditDialog";
|
||||
|
||||
const Controls = ({ onUpdate }) => {
|
||||
const [createOpen, setCreateOpen] = useState(false);
|
||||
|
||||
const onComplete = () => {
|
||||
onUpdate();
|
||||
setCreateOpen(false);
|
||||
};
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Button
|
||||
mt={5}
|
||||
ml={5}
|
||||
mb={5}
|
||||
variant="solid"
|
||||
colorPalette="primary"
|
||||
onClick={() => setCreateOpen(true)}
|
||||
>
|
||||
<Plus /> Create Model Cost
|
||||
</Button>
|
||||
<EditDialog
|
||||
open={createOpen}
|
||||
onOpenChange={setCreateOpen}
|
||||
create={true}
|
||||
onComplete={() => onComplete()}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default Controls;
|
||||
Loading…
Add table
Add a link
Reference in a new issue