attempt to set copy tool to checked by default
This commit is contained in:
parent
aa8649f710
commit
36200044db
@ -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 ?
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user