import { BooleanLike } from 'common/react'; import { useBackend } from '../backend'; import { Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; type Data = { bought: { id: string; name: string; on: BooleanLike }[]; not_bought: { id: string; name: string; ram: number }[]; available_ram: number; emotions: { id: string; name: string }[]; current_emotion: string; }; export const pAIInterface = (props, context) => { const { act, data } = useBackend(context); const { bought, not_bought, available_ram, emotions, current_emotion } = data; return (
{emotions.map((emote) => (
{bought.map((app) => (
); };