2025-03-25 20:32:17 +08:00

36 lines
757 B
TypeScript

import styled from 'styled-components';
import { IconInfoCircle } from '@douyinfe/semi-icons';
export const BaseNodeStyle = styled.div`
align-items: flex-start;
background-color: #fff;
border: 1px solid rgba(6, 7, 9, 0.15);
border-radius: 8px;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
min-width: 360px;
width: 100%;
height: 100%;
&.selected {
border: 1px solid #4e40e5;
}
`;
export const ErrorIcon = () => (
<IconInfoCircle
style={{
position: 'absolute',
color: 'red',
left: -6,
top: -6,
zIndex: 1,
background: 'white',
borderRadius: 8,
}}
/>
);