import React, { useState } from "react"; import { ArrowIcon } from "../../icons/ExportCommonIcons"; import LabledDropdown from "./LabledDropdown"; interface PreviewSelectionWithUploadProps { preview?: boolean; upload?: boolean; label?: string; onSelect: (option: string) => void; defaultOption: string; options: string[]; } const PreviewSelectionWithUpload: React.FC = ({ preview = false, upload = false, onSelect, label, defaultOption, options, }) => { const [showPreview, setShowPreview] = useState(false); return (
{preview && ( <> {showPreview && (
)} )} {upload && (
Upload Product
)}
); }; export default PreviewSelectionWithUpload;