aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasteInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/PasteInfo.js')
-rw-r--r--frontend/src/components/PasteInfo.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js
new file mode 100644
index 0000000..b27cd53
--- /dev/null
+++ b/frontend/src/components/PasteInfo.js
@@ -0,0 +1,29 @@
+import React from 'react';
+import styled from 'styled-components'
+
+const Bold = styled.span`
+ font-weight: 700
+`
+
+const FloatLeft = styled.p`
+ float: left;
+ display: inline-block;
+ margin: 0;
+`
+const FloatRight = styled.p`
+ float: right;
+ display: inline-block;
+ margin: 0;
+ margin-right: -1em;
+`
+
+const PasteInfo = (props) => {
+ return (
+ <div>
+ <FloatLeft><Bold>mode:&nbsp;</Bold>{props.mode}</FloatLeft>
+ <FloatRight><Bold>expires:&nbsp;</Bold>{props.expiry}</FloatRight>
+ </div>
+ );
+}
+
+export default PasteInfo \ No newline at end of file