@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
16 lines (15 loc) • 536 B
TypeScript
import { ModalContentProps, Styles } from '@open-tender/ui';
import { ReactNode } from 'react';
declare const ModalContent: ({ title, subtitle, content, submit, submitText, cancel, cancelText, style, error, children }: {
title?: string;
subtitle?: string | null;
content: ReactNode;
submit?: () => void;
submitText?: string;
cancel?: () => void;
cancelText?: string;
style?: Styles;
error?: string;
children: (props: ModalContentProps) => ReactNode;
}) => ReactNode;
export default ModalContent;