import { Show, splitProps } from 'solid-js'; export type DisclaimerPopupProps = { isOpen?: boolean; isFullPage?: boolean; // New prop to indicate full-page mode onAccept?: () => void; onDeny?: () => void; title?: string; message?: string; buttonText?: string; denyButtonText?: string; blurredBackgroundColor?: string; backgroundColor?: string; buttonColor?: string; textColor?: string; buttonTextColor?: string; denyButtonBgColor?: string; }; export const DisclaimerPopup = (props: DisclaimerPopupProps) => { const [popupProps] = splitProps(props, [ 'onAccept', 'onDeny', 'isOpen', 'isFullPage', // New prop 'title', 'message', 'textColor', 'buttonColor', 'buttonText', 'denyButtonText', 'buttonTextColor', 'denyButtonBgColor', 'blurredBackgroundColor', 'backgroundColor', ]); const handleAccept = () => { popupProps.onAccept?.(); }; const handleDeny = () => { popupProps.onDeny?.(); }; return (

{popupProps.title ?? 'Disclaimer'}

Terms & Condition.' } />

{/* Only show the Cancel button if not in full-page mode */}
); };