import { useBackend } from '../backend'; import { Box, Button, Divider, Section, Table } from '../components'; import { Window } from '../layouts'; type Data = { device_theme: string; age: string; ckey: string; entries: { author: string; date: string; comment: string }[]; }; export const PlayerNotesInfo = (props, context) => { const { act, data } = useBackend(context); const { device_theme, age, ckey, entries } = data; return (
This ckey has {entries.length} comments. {entries.map((entry, index) => ( Written by {entry.author} on {entry.date}
"{entry.comment}"
))}
); };