mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-09 03:09:33 -06:00
26 lines
528 B
TypeScript
26 lines
528 B
TypeScript
import React from "react";
|
|
|
|
interface SurveyEmbedProps {
|
|
surveyUrl: string;
|
|
}
|
|
|
|
const SurveyEmbed: React.FC<SurveyEmbedProps> = ({ surveyUrl }) => {
|
|
return (
|
|
<div
|
|
style={{
|
|
position: "relative",
|
|
height: "90vh",
|
|
maxHeight: "100vh",
|
|
overflow: "auto",
|
|
borderRadius: "12px",
|
|
}}>
|
|
<iframe
|
|
src={surveyUrl}
|
|
style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", border: 0 }}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SurveyEmbed;
|