import CopyIcon from "@icons/CopyIcon"; import { Box, IconButton, InputAdornment, TextField as MuiTextField, TextFieldProps, Typography, useTheme, } from "@mui/material"; import { FC } from "react"; const TextField = MuiTextField as unknown as FC; interface Props { scriptText: string; helperText: string; } export default function WidgetScript({ scriptText, helperText }: Props) { const theme = useTheme(); return ( {helperText} { navigator.clipboard.writeText(scriptText); }} edge="end" sx={{ marginTop: "22px" }} > ), }} /> ); }