diff --git a/src/components/ActionRegistry.tsx b/src/components/ActionRegistry.tsx index e69de29..f1e97a8 100644 --- a/src/components/ActionRegistry.tsx +++ b/src/components/ActionRegistry.tsx @@ -0,0 +1,60 @@ +import { requestJSON } from '@/client/utils' +import type { RoomData } from '@/db/model' +import type { ActionAnswer, ActionJolly } from '@/ggwp' +import { useEffect, useState } from 'preact/hooks' + +type Props = { + roomId: string +} + +const ActionCardAnswer = ({ action }: { action: ActionAnswer }) => { + return ( +
Ancora nessuna azione
+ } + + return ( + <> + {room.actions.map(action => + action.type === 'answer' ? ( +{JSON.stringify(action)}
+