diff --git a/package.json b/package.json index 613edc15..9e547d2b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ }, "dependencies": { "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "@probat/react": "^0.3.1" }, "devDependencies": { "@types/react": "^18.2.43", diff --git a/src/components/GetStartedButton.experiment.tsx b/src/components/GetStartedButton.experiment.tsx new file mode 100644 index 00000000..0ae913a6 --- /dev/null +++ b/src/components/GetStartedButton.experiment.tsx @@ -0,0 +1,21 @@ +import React from 'react' + +interface GetStartedButtonProps { + label?: string + large?: boolean +} + +const GetStartedButton: React.FC = ({ label = 'Try It Free — No Credit Card Needed', large = true }) => { + return ( + + ) +} + +export default GetStartedButton diff --git a/src/components/GetStartedButton.original.tsx b/src/components/GetStartedButton.original.tsx new file mode 100644 index 00000000..1a1173af --- /dev/null +++ b/src/components/GetStartedButton.original.tsx @@ -0,0 +1,16 @@ +import React from 'react' + +interface GetStartedButtonProps { + label?: string + large?: boolean +} + +const GetStartedButton: React.FC = ({ label = 'Get Started Free', large = false }) => { + return ( + + ) +} + +export default GetStartedButton diff --git a/src/components/GetStartedButton.tsx b/src/components/GetStartedButton.tsx index 1a1173af..06ca1ff2 100644 --- a/src/components/GetStartedButton.tsx +++ b/src/components/GetStartedButton.tsx @@ -1,16 +1,16 @@ -import React from 'react' +"use client"; +import { ProbatProviderClient, Experiment } from "@probat/react"; +import OriginalComponent from "./GetStartedButton.original"; +import ExperimentVariant from "./GetStartedButton.experiment"; -interface GetStartedButtonProps { - label?: string - large?: boolean -} - -const GetStartedButton: React.FC = ({ label = 'Get Started Free', large = false }) => { +export default function GetStartedButton(props: any) { return ( - - ) + + } + variants={{ experiment: }} + /> + + ); } - -export default GetStartedButton