How to hide/show device level dashboard marked in attached screenshot on condition basis device type. used to below code to show dashboard at device level

Hi Team,
Thanks, We are using
providers: [
hookRoute({
label: ‘Device Configuration’,
path: ‘device-dashboard’,
icon: ‘gears’,
context: ViewContext.Device,
component: deviceConfigurations,
priority: 3000,
}),
],
it is working but now our requirement is change, it should show only some type of user defined device dashboard. Just an example we have two device type dashboard
type 1
type 2
user want to see only type 1 default device level dashboard