import React, { PureComponent, useState } from 'react';
import { Tooltip, Button, Popover } from '@douyinfe/semi-ui';
import { PopupContent, Trigger } from './common';
// ❌
const Right2Left = () => {
const [pos, setPos] = useState('right');
return (
}
arrowPointAtCenter={false}
visible
trigger='custom'
position={pos}
key={pos}
>
pos: {pos}
);
};
// ✅
const Right2LeftTop = () => {
const [pos, setPos] = useState('right');
return (
}
arrowPointAtCenter={false}
visible
trigger='custom'
position={pos}
key={pos}
>
);
};
// ❌
const Right2LeftBottom = () => {
const [pos, setPos] = useState('right');
return (
}
arrowPointAtCenter={false}
visible
trigger='custom'
position={pos}
key={pos}
>
);
};
const Right2RightTop = () => {
const [pos, setPos] = useState('right');
return (
}
arrowPointAtCenter={false}
visible
trigger='custom'
position={pos}
key={pos}
>
);
};
const Right2RightBottom = () => {
const [pos, setPos] = useState('right');
return (
}
arrowPointAtCenter={false}
visible
trigger='custom'
position={pos}
key={pos}
>
);
};
export { Right2Left, Right2LeftTop, Right2LeftBottom, Right2RightTop, Right2RightBottom };