import { Button, Divider, Segmented, Tooltip } from 'antd'; import React, { useMemo, useState } from 'react'; const text = prompt text; const buttonWidth = 70; const gap = 8; const btnProps = { style: { width: buttonWidth, }, }; const App: React.FC = () => { const options = ['Show', 'Hide', 'Center']; const [arrow, setArrow] = useState('Show'); const mergedArrow = useMemo(() => { if (arrow === 'Hide') { return false; } if (arrow === 'Show') { return true; } return { pointAtCenter: true, }; }, [arrow]); return (