import * as React from "react"; import { ITask } from "../../../../models"; import { TaskContextProps } from "../../../context"; /** * Properties of TaskCardProps. * * @typedef Supervisor․TaskCardProps * @memberof Supervisor․TaskCard * @property {string | React.ReactNode} [icon] - Task Card icon. * @property {React.ReactChild} [firstLine] - Task Card first line. * @property {React.ReactChild} [secondLine] - Task Card second line. * @property {Function} [onClick] - Callback called when task is selected. * @property {boolean} [highlighted] - Whether the task card is highlighted or no. * @property {boolean} [selected] - Whether the task card is selected or no. * @property {DynamicContentStore.DynamicComponentChildren} [children] - children */ export interface TaskCardProps { icon?: string | React.ReactNode; firstLine?: React.ReactChild; secondLine?: React.ReactChild; onClick?: (task: ITask) => void; highlighted?: boolean; selected?: boolean; } /** * Properties of TaskCard. * * @typedef Supervisor.TaskCardChildrenProps * @memberof Supervisor․TaskCard */ export interface TaskCardChildrenProps extends TaskCardProps, TaskContextProps { } export declare enum SupervisorTaskCardChildrenKeys { icon = "icon", content = "content" }