mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
32 lines
628 B
JavaScript
32 lines
628 B
JavaScript
import React from "react";
|
|
|
|
function LinkInput({ permalink, hide }) {
|
|
return (
|
|
<div>
|
|
<input
|
|
style={{
|
|
padding: "5px",
|
|
width: "300px",
|
|
marginBottom: "10px"
|
|
}}
|
|
onFocus={e => e.target.setSelectionRange(0, e.target.value.length)}
|
|
className="permalink-input"
|
|
value={permalink}
|
|
readOnly
|
|
autoFocus
|
|
/>
|
|
<span
|
|
style={{
|
|
fontSize: "18px",
|
|
marginLeft: "5px",
|
|
cursor: "pointer"
|
|
}}
|
|
onClick={hide}
|
|
>
|
|
×
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LinkInput;
|