import { useState } from "react"; import { featureEnabled } from "../../domainContext"; import ShareModal from "./[transcriptId]/shareModal"; import { GetTranscript, GetTranscriptTopic } from "../../api"; import { BoxProps, Button } from "@chakra-ui/react"; type ShareZulipProps = { transcriptResponse: GetTranscript; topicsResponse: GetTranscriptTopic[]; disabled: boolean; }; export default function ShareZulip(props: ShareZulipProps & BoxProps) { const [showModal, setShowModal] = useState(false); if (!featureEnabled("sendToZulip")) return null; return ( <> setShowModal(v)} /> ); }