/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*/
import { Button, Inline, Table, ButtonIcon } from 'aws-northstar'
import { FunctionComponent } from 'react'
import { useHistory } from 'react-router-dom'
import { columnDefinitions } from './table-columns'
import { appvars } from '../../../config'
import { useSolverJobQueryContext } from 'src/contexts/SolverJobQueryContext'
export const SolverJobList: FunctionComponent = () => {
const history = useHistory()
const [{ items: solverJobItems, isLoading }, { refreshItems }] = useSolverJobQueryContext()
const onRefreshClick = async () => {
refreshItems()
}
const onCreateClick = () => {
history.push(`/${appvars.URL.SOLVER_JOB}/new`)
}
const tableActions = (