File size: 563 Bytes
e3322d7
 
c939fd2
e3322d7
 
 
 
c939fd2
e3322d7
 
 
 
 
 
 
 
c939fd2
e3322d7
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Button, Flex } from 'antd';

import { useRunGraph, useSaveGraph } from '../hooks';
import styles from './index.less';

const FlowHeader = () => {
  const { saveGraph } = useSaveGraph();
  const { runGraph } = useRunGraph();

  return (
    <Flex
      align="center"
      justify="end"
      gap={'large'}
      className={styles.flowHeader}
    >
      <Button onClick={runGraph}>
        <b>Debug</b>
      </Button>
      <Button type="primary" onClick={saveGraph}>
        <b>Save</b>
      </Button>
    </Flex>
  );
};

export default FlowHeader;