function isPaidEvent
isPaidEvent(event: Pick<Event, "unit_price" | "can_pay_more">): boolean

Whether an event can accept payments (has a price or allows pay-what-you-want)

Parameters

event: Pick<Event, "unit_price" | "can_pay_more">

Return Type

boolean

Usage

import { isPaidEvent } from "docs/config.ts";