2025-07-21 13:01:16 -07:00
|
|
|
export default function Widget({ title }) {
|
2025-07-09 15:20:29 -07:00
|
|
|
return (
|
2025-07-21 13:01:16 -07:00
|
|
|
<>
|
|
|
|
|
<div
|
|
|
|
|
className="widget-handle"
|
|
|
|
|
style={{ padding: '4px', cursor: 'move', background: '#ddd' }}
|
2025-07-09 15:20:29 -07:00
|
|
|
>
|
2025-07-21 13:01:16 -07:00
|
|
|
{title}
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{ padding: '8px' }}>
|
|
|
|
|
This is the widget content - drag or resize me!
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
2025-07-09 15:20:29 -07:00
|
|
|
);
|
2025-07-21 13:01:16 -07:00
|
|
|
}
|
|
|
|
|
|