• File: types.ts
  • Full Path: /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/EventTickets/resources/admin/components/TicketTypeFormModal/types.ts
  • Date Modified: 02/03/2025 8:13 PM
  • File size: 658 bytes
  • MIME-type: text/plain
  • Charset: utf-8
export type TicketType = {
    id?: number;
    eventId?: number;
    title: string;
    description: string;
    price: number;
    capacity: number;
    salesCount: number;
};

export type Inputs = {
    title: string;
    description: string;
    price: number;
    capacity: number;
};

export interface TicketModalProps {
    isOpen: boolean;
    handleClose: (response?: any) => void;
    apiSettings: {
        apiRoot: string;
        apiNonce: string;
        currencyCode: string;
    };
    eventId: number;
}

export interface TicketTypeFormContextType {
    ticketData: TicketType | null;
    setTicketData: (data: TicketType | null) => void;
}