UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

22 lines (21 loc) 795 B
"use client"; import React, { useContext } from 'react'; import IterateItemContext from "../IterateItemContext.js"; import { EditContainerWithoutToolbar } from "../EditContainer/index.js"; import withComponentMarkers from "../../../../shared/helpers/withComponentMarkers.js"; import { jsx as _jsx } from "react/jsx-runtime"; function AnimatedContainer(props) { const iterateItemContext = useContext(IterateItemContext); const { isNew } = iterateItemContext !== null && iterateItemContext !== void 0 ? iterateItemContext : {}; return _jsx(EditContainerWithoutToolbar, { open: !isNew ? true : undefined, ...props }); } withComponentMarkers(AnimatedContainer, { _supportsSpacingProps: true }); export default AnimatedContainer; //# sourceMappingURL=AnimatedContainer.js.map