@yandex/ui
Version:
Yandex UI components
18 lines (17 loc) • 980 B
JavaScript
import React, { useRef } from 'react';
import { Popup, directions } from '@yandex-lego/components/Popup/desktop/bundle';
export var Direction = function () {
var scopeRef = useRef(null);
var anchorRef = useRef(null);
return (React.createElement("div", { ref: scopeRef, style: { marginLeft: 112, marginTop: 32 } },
React.createElement("div", { style: {
background: '#e6e6e6',
height: 160,
width: 320,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}, ref: anchorRef }, "Anchor"),
directions.map(function (direction) { return (React.createElement(Popup, { key: direction, anchor: anchorRef, scope: scopeRef, direction: direction, hasTail: true, target: "anchor", view: "default", visible: true },
React.createElement("div", { style: { padding: 8, fontFamily: 'var(--control-font-family)' } }, direction))); })));
};