import type { SampleMeta, SampleRenderProps } from '../../core';
import { AgGridWidget } from '../AgGridWidget';

export const sampleMeta: SampleMeta = {
  id: 'ag-grid-widget',
  componentId: 'ag-grid-widget',
  title: 'AG Grid Widget',
  description: '상단 좌측 타이틀과 우측 액션, 하단 100% 데이터 그리드를 가지는 위젯입니다.',
  category: 'Widgets',
  kind: 'feature',
  variantLabel: 'Data Grid',
  order: 24,
  features: ['component-sample', 'feature-registry', 'imperative-handle'],
};

export function Sample({ disableWidgetCardWrapper }: SampleRenderProps) {
  return <AgGridWidget cardWrapper={!disableWidgetCardWrapper} height={480} />;
}
