/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-7eefd09
 * Released under the MIT license.
 */

import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { tasty } from '../../../tasty/index.js';
import { Item } from '../../content/Item/Item.js';
const StyledItem = tasty(Item, {
    styles: {
        transition: 'theme, inset',
        pointerEvents: 'none',
        Description: {
            preset: 't4',
        },
    },
});
export const ToastItem = forwardRef(function ToastItem(props, ref) {
    const { title, description, theme, isLoading, children, qa, ...itemProps } = props;
    // If only description provided (no title/children), use description as primary content
    const primaryContent = children ?? title ?? description;
    const secondaryContent = children || title ? description : undefined;
    return (_jsx(StyledItem, { ref: ref, qa: qa ?? 'Toast', type: "card", theme: theme, isLoading: isLoading, description: secondaryContent, ...itemProps, children: primaryContent }));
});

        