import { BooleanLike } from 'common/react'; import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; type Data = { notices: { name: string; isphoto: BooleanLike; ispaper: BooleanLike; ref: string }[]; }; export const NoticeBoard = (props, context) => { const { act, data } = useBackend(context); const { notices } = data; return (
{notices.length ? ( {notices.map((notice, i) => ( {(notice.isphoto && (
); };