UNPKG

general-assistant

Version:

General Assistant components

9 lines (8 loc) 994 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import classNames from 'classnames'; import MyIconColumn from '../IconColumn'; export default function IconContainer({ container, className = '' }) { const key = Math.floor(Math.random() * 10000).toString(); const { left, center, right } = container || {}; return (_jsxs("div", { className: classNames('DS-GA-w-full DS-GA-flex DS-GA-justify-between DS-GA-items-center DS-GA-text-center', 'DS-GA-gap-1 DS-GA-px-3', 'md:DS-GA-gap-3 md:DS-GA-px-5', className), children: [left && (_jsx("div", { className: classNames('DS-GA-flex', 'DS-GA-gap-1', 'md:DS-GA-gap-2'), children: _jsx(MyIconColumn, { ...left }) })), center && (_jsx("div", { className: classNames('DS-GA-grow DS-GA-flex', 'DS-GA-gap-1', 'md:DS-GA-gap-2'), children: _jsx(MyIconColumn, { ...center }) })), right && (_jsx("div", { className: classNames('DS-GA-flex', 'DS-GA-gap-1', 'md:DS-GA-gap-2'), children: _jsx(MyIconColumn, { ...right }) }))] }, key)); }