import React from "react"; export interface ConsentProps { title?: string; text?: string; buttonText?: string; onConsent: () => void; } const defaultTitle = "Do you consent to participate in this experiment?"; const defaultText = `This experiment is part of a scientific project. Your decision to participate in this experiment is entirely voluntary. There are no known or anticipated risks to participating in this experiment. There is no way for us to identify you. The only information we will have, in addition to your responses, is the timestamps of your interactions with our site. The results of our research may be presented at scientific meetings or published in scientific journals. Clicking on the "I AGREE" button indicates that you are at least 18 years of age, and agree to participate voluntary.`; const defaultButtonText = "I AGREE"; export const Consent: React.FC = ({ title = defaultTitle, text = defaultText, buttonText = defaultButtonText, onConsent, }) => { return (
{text}
); };