import type { SampleMeta, SampleRenderProps } from '../../core';
import { DashboardReportCardWidget } from '../DashboardReportCardWidget';
import { tmsDeliveryMetricsCardPreset } from '../../../data/dashboard-report-presets';

export const sampleMeta: SampleMeta = {
  id: 'tms-delivery-metrics-report',
  componentId: 'dashboard-report-card',
  title: 'TMS 배송 실적 지표',
  description: '배송 실적 지표와 정시/지연 비율을 함께 보여주는 TMS 대시보드 카드입니다.',
  category: 'Widgets',
  kind: 'feature',
  variantLabel: 'TMS / 배송 지표',
  order: 23,
  features: ['docs'],
};

export function Sample({ disableWidgetCardWrapper }: SampleRenderProps) {
  return (
    <DashboardReportCardWidget
      {...tmsDeliveryMetricsCardPreset}
      cardWrapper={!disableWidgetCardWrapper}
    />
  );
}
