mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-25 17:42:47 +00:00
Bundle Copy
This commit is contained in:
21
tgui/packages/tgui_ch/interfaces/pda/pda_notekeeper.js
Normal file
21
tgui/packages/tgui_ch/interfaces/pda/pda_notekeeper.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/* eslint react/no-danger: "off" */
|
||||
import { useBackend } from '../../backend';
|
||||
import { Box, Button, Section } from '../../components';
|
||||
|
||||
export const pda_notekeeper = (props, context) => {
|
||||
const { act, data } = useBackend(context);
|
||||
|
||||
const { note } = data;
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Section>
|
||||
{/* As usual with dangerouslySetInnerHTML,
|
||||
this notekeeper was designed to use HTML injection.
|
||||
Fix when markdown is easier. */}
|
||||
<div dangerouslySetInnerHTML={{ __html: note }} />
|
||||
</Section>
|
||||
<Button icon="pen" onClick={() => act('Edit')} content="Edit Notes" />
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user