diff --git a/tgui/packages/tgui/interfaces/ExaminePanel.js b/tgui/packages/tgui/interfaces/ExaminePanel.tsx similarity index 68% rename from tgui/packages/tgui/interfaces/ExaminePanel.js rename to tgui/packages/tgui/interfaces/ExaminePanel.tsx index 502d3728b7741..8dc853a13850a 100644 --- a/tgui/packages/tgui/interfaces/ExaminePanel.js +++ b/tgui/packages/tgui/interfaces/ExaminePanel.tsx @@ -1,9 +1,18 @@ +import { BooleanLike } from '../../common/react'; import { useBackend } from '../backend'; -import { ByondUi, Section, Stack } from '../components'; +import { Section, Stack } from '../components'; import { Window } from '../layouts'; +import { CharacterPreview } from './common/CharacterPreview'; -export const ExaminePanel = (props, context) => { - const { act, data } = useBackend(context); +type Data = { + character_name: string; + obscured: BooleanLike; + assigned_map: string; + flavor_text: string; +}; + +export const ExaminePanel = (props) => { + const { act, data } = useBackend(); const { character_name, obscured, assigned_map, flavor_text } = data; return ( @@ -12,15 +21,7 @@ export const ExaminePanel = (props, context) => {
{!obscured && ( - + )}