<script setup>
import VnCard from 'components/common/VnCard.vue';
import WorkerDescriptor from './WorkerDescriptor.vue';
import WorkerFilter from '../WorkerFilter.vue';
</script>
<template>
    <VnCard
        data-key="Worker"
        base-url="Workers"
        :descriptor="WorkerDescriptor"
        :filter-panel="WorkerFilter"
        search-data-key="WorkerList"
        :searchbar-props="{
            url: 'Workers/filter',
            label: 'Search worker',
            info: 'You can search by worker id or name',
        }"
        :redirect-on-error="true"
    />
</template>
