diff --git a/app/src/frontend/building/header-buttons/copy-control.tsx b/app/src/frontend/building/header-buttons/copy-control.tsx index 3d6d1e60..63dcb4bd 100644 --- a/app/src/frontend/building/header-buttons/copy-control.tsx +++ b/app/src/frontend/building/header-buttons/copy-control.tsx @@ -8,6 +8,17 @@ interface CopyControlProps { toggleCopying: () => void; } +function initCopyControlProps(options?: Partial): CopyControlProps { + const defaults = { + copying: true + }; + + return { + ...defaults, + ...options, + }; +} + const CopyControl: React.FC = props => ( props.copying ? <>