mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Update
This commit is contained in:
17
components/Task.tsx
Normal file
17
components/Task.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Component } from "preact";
|
||||
import { TaskDetail, TaskStatus } from "../task.ts";
|
||||
|
||||
type Props = {
|
||||
task: TaskDetail;
|
||||
};
|
||||
|
||||
export default class Task extends Component<Props> {
|
||||
render() {
|
||||
const task = this.props.task;
|
||||
return (
|
||||
<div data-id={task.base.id}>
|
||||
Task Id: {task.base.id}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user