import { BookingBillingPeriodList } from '@/apps/portal/modules/booking/components/BookingBillingPeriodList';
import { IBookingCreateUnitTypeBilling } from '@/apps/portal/modules/booking/types/booking-entity-types';
import { BaseComponent } from '@/shared/modules/base/components/BaseComponent';

export class BookingBillingPeriodSection extends BaseComponent {
  private readonly billingPeriodList = new BookingBillingPeriodList(this.host.getByTestId('billing-period-list'));

  select(billingPeriod: IBookingCreateUnitTypeBilling): Promise<void> {
    return this.billingPeriodList.select(billingPeriod);
  }
}
