attempt to set copy tool to checked by default

This commit is contained in:
Ed Chalstrey 2022-06-20 15:36:26 +01:00
parent aa8649f710
commit 36200044db

View File

@ -8,6 +8,17 @@ interface CopyControlProps {
toggleCopying: () => void;
}
function initCopyControlProps(options?: Partial<CopyControlProps>): CopyControlProps {
const defaults = {
copying: true
};
return {
...defaults,
...options,
};
}
const CopyControl: React.FC<CopyControlProps> = props => (
props.copying ?
<>