import Drawer from "rc-drawer"; import React from "react"; import { Close, Flex, Heading } from "theme-ui"; import { Card } from "@/legacy/components/Card"; export const SliceMachineDrawerUI: React.FunctionComponent<{ isOpen: boolean; title: string; footer: React.ReactNode; explanations: React.ReactNode; onClose: () => void; }> = ({ isOpen, title, footer, explanations, onClose }) => { return ( `1px solid ${String(t.colors?.borders)}`, }} > {title} onClose()} /> } Footer={() => ( `1px solid ${String(t.colors?.darkBorders)}`, backgroundColor: "white", padding: 20, }} > {footer} )} > {explanations} ); };