Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function presentContactInfoFormAsync({
contact,
options,
}: { contact?: Contacts.Contact; options?: Contacts.FormOptions } = {}) {
return Contacts.presentFormAsync(contact!.id, null, { ...options, isNew: false });
}
export function presentUnknownContactFormAsync({
contact,
options,
}: { contact?: Contacts.Contact; options?: Contacts.FormOptions } = {}) {
return Contacts.presentFormAsync(null, contact, { ...options, isNew: false });
}
export function presentNewContactFormAsync({
contact,
options,
}: { contact?: Contacts.Contact; options?: Contacts.FormOptions } = {}) {
return Contacts.presentFormAsync(null, contact, { ...options, isNew: true });
}