UNPKG

narraleaf-react

Version:

A React visual novel player framework

19 lines (18 loc) 547 B
import { GameState } from "../../../../game/nlcore/common/game"; import React from "react"; export type Notification = { message: string; id: string; }; export type PlayerNotificationProps = { gameState: GameState; }; export type NotificationsProps = { children: React.ReactNode; } & React.HTMLAttributes<HTMLDivElement>; export type NotificationProps = React.PropsWithChildren<{ notification: Notification; }> & React.HTMLAttributes<HTMLDivElement>; export interface INotificationsProps { notifications: Notification[]; }