import React, { useState } from "react"; import Editor from "components/Editor"; import CustomLink from "components/CustomLink"; import FleetAce from "components/FleetAce"; import RevealButton from "components/buttons/RevealButton"; const baseClass = "add-package-advanced-options"; interface IAddPackageAdvancedOptionsProps { errors: { preInstallQuery?: string; postInstallScript?: string }; preInstallQuery?: string; installScript: string; postInstallScript?: string; onChangePreInstallQuery: (value?: string) => void; onChangeInstallScript: (value: string) => void; onChangePostInstallScript: (value?: string) => void; } const AddPackageAdvancedOptions = ({ errors, preInstallQuery, installScript, postInstallScript, onChangePreInstallQuery, onChangeInstallScript, onChangePostInstallScript, }: IAddPackageAdvancedOptionsProps) => { const [showAdvancedOptions, setShowAdvancedOptions] = useState(false); return (