@equinor/eds-core-react
Version:
The React implementation of the Equinor Design System
28 lines (25 loc) • 826 B
JavaScript
import { forwardRef } from 'react';
import styled, { css } from 'styled-components';
import { jsx } from 'react/jsx-runtime';
const StyledPopoverActions = styled.div.withConfig({
displayName: "PopoverActions__StyledPopoverActions",
componentId: "sc-1dkrhw6-0"
})(({
theme
}) => {
return css(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;padding:0 ", " 0 ", ";&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], theme.spacings.right, theme.spacings.left, theme.spacings.top, theme.spacings.bottom);
});
const PopoverActions = /*#__PURE__*/forwardRef(function PopoverActions({
children,
...rest
}, ref) {
const props = {
ref,
...rest
};
return /*#__PURE__*/jsx(StyledPopoverActions, {
...props,
children: children
});
});
export { PopoverActions };