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

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

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