import { Directive, TemplateRef, input } from '@angular/core';
import { DataTableCellContext, DataTableRecord } from './data-table.types';

@Directive({
  selector: 'ng-template[appDataTableCell]',
  standalone: true
})
export class DataTableCellDirective<T extends DataTableRecord = DataTableRecord> {
  appDataTableCell = input.required<string>();

  constructor(readonly templateRef: TemplateRef<DataTableCellContext<T>>) {}
}