"use client"; import React from "react"; import { motion } from "framer-motion"; interface WidgetContainerProps { title: string; description?: string; onRemove: () => void; children: React.ReactNode; isDragging?: boolean; showDetails?: boolean; onToggleDetails?: () => void; } export function WidgetContainer({ title, description, onRemove, children, isDragging, showDetails = false, onToggleDetails, }: WidgetContainerProps) { return (
{title} {showDetails ? ( Details ) : null}
{showDetails && description && (

{description}

)}
{onToggleDetails ? ( ) : null}
{children}
); }