@clubmed/trident-ui
Version:
Shared ClubMed React UI components
18 lines (17 loc) • 548 B
TypeScript
import type { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
export type ClosePopinCallback = () => void;
interface PopinFooterProps {
closeLabel: string;
onClose: ClosePopinCallback;
}
export interface PopinProps {
title: ReactNode;
closeLabel: string;
onClose: ClosePopinCallback;
isVisible: boolean;
className?: string;
showCloseButton?: boolean;
Footer?: FunctionComponent<PopinFooterProps> | false;
}
export declare const Popin: FunctionComponent<PropsWithChildren<PopinProps>>;
export {};