* fix(ts): use strict mode strictNullChecks etc * chore: Use extended React.HTMLAttributes<> (#41) * refactor(code-format): add prettier closes #42 * feat(renderer): add snap to grid option closes #20 * chore(dependabot): use develop as target branch
19 lines
417 B
TypeScript
19 lines
417 B
TypeScript
import React, { CSSProperties } from 'react';
|
|
|
|
import Handle from '../../components/Handle';
|
|
import { NodeProps } from '../../types';
|
|
|
|
const nodeStyles: CSSProperties = {
|
|
background: '#9999ff',
|
|
padding: 10,
|
|
borderRadius: 5,
|
|
width: 150,
|
|
};
|
|
|
|
export default ({ data, style }: NodeProps) => (
|
|
<div style={{ ...nodeStyles, ...style }}>
|
|
{data.label}
|
|
<Handle type="source" position="bottom" />
|
|
</div>
|
|
);
|