->visible(function (Component $component, Get $get) {
if ($get('../../conditions') === null) {
return false;
}
$statePath = $component->getContainer()->getStatePath();
$statePath = explode('.', $statePath);
$statePath = end($statePath);
if (array_key_first($get('../../conditions')) === $statePath) {
return false;
}
return true;
})
->visible(function (Component $component, Get $get) {
if ($get('../../conditions') === null) {
return false;
}
$statePath = $component->getContainer()->getStatePath();
$statePath = explode('.', $statePath);
$statePath = end($statePath);
if (array_key_first($get('../../conditions')) === $statePath) {
return false;
}
return true;
})