import React, { useState } from "react"; import Share from "../../app/components/modals/Share"; /** Figma: Overlay / Modal / Share — node 24972-2094. */ export default { title: "Components/Modals/Share", component: Share, parameters: { layout: "fullscreen", docs: { description: { component: "Share settings for a finished Rule: invite people, confirm a link, or copy it.", }, }, }, }; const previewSettings = { visibility: "private", shareSlug: null, shareUrl: "https://communityrule.info/rules/rule-1", shareUrlDisplay: null, title: "Juniper Street Food Share", ownerEmail: "name@example.org", ownerInitials: "N", readers: [ { email: "rosa@example.org", initials: "R", role: "reader" }, { email: "a@example.org", initials: "A", role: "reader" }, { email: "b@example.org", initials: "B", role: "reader" }, { email: "c@example.org", initials: "C", role: "reader" }, { email: "d@example.org", initials: "D", role: "reader" }, { email: "e@example.org", initials: "E", role: "reader" }, ], copyEnabled: true, }; function ShareStoryHost() { const [open, setOpen] = useState(true); return (