Working on dialog editor, on dialogs, on phone
This commit is contained in:
1 parent
0e27521bea
commit
8f7797789d
63 files changed
+9502
-1459
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { memo } from 'react';
|
||||
import { Handle, Position, NodeProps } from '@xyflow/react';
|
||||
import { EndNode as EndNodeData } from '../../types/dialogue';
|
||||
import styles from './nodes.module.css';
|
||||
|
||||
export const EndNode = memo(({ data, selected }: NodeProps & { data: EndNodeData }) => {
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
styles.node,
|
||||
styles.endNode,
|
||||
selected ? styles.selected : '',
|
||||
].join(' ')}
|
||||
>
|
||||
<Handle type="target" position={Position.Top} id="target" className={styles.handle} />
|
||||
<div className={styles.endLabel}>END</div>
|
||||
<div className={styles.nodeId}>{data.id}</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user