import React from 'react'; import { Task } from '@/api/server/schedules/getServerSchedules'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTrashAlt } from '@fortawesome/free-solid-svg-icons/faTrashAlt'; import { faCode } from '@fortawesome/free-solid-svg-icons/faCode'; import { faToggleOn } from '@fortawesome/free-solid-svg-icons/faToggleOn'; interface Props { task: Task; } export default ({ task }: Props) => { return (

{task.action === 'command' ? 'Send command' : 'Send power action'}

{task.payload}
{task.sequenceId > 1 &&

{task.timeOffset}s

Delay Run By

}
); };