import { memo } from 'react'
import { InfoBlock } from '../info-block'
import { GrRun } from 'react-icons/gr'
import { useWebsiteContext } from '@app/components/providers/website'
import { RunnerSelect } from '../../runner-select'
export const RunnersBoxWrapper = ({
url,
runners,
}: {
url?: string
runners?: string[]
}) => {
const { updateWebsite } = useWebsiteContext()
const onChangeEvent = async (selected: string[]) => {
try {
await updateWebsite({
variables: { url, runners: selected },
})
} catch (e) {
console.error(e)
}
}
return (