def call
render AppSecondaryNavigationComponent.new do |nav|
nav.with_item(
href: imports_path,
text: "Incomplete uploads",
selected: active == :uploaded
)
nav.with_item(
href: records_imports_path,
text: "Completed imports",
selected: active == :imported
)
if policy(%i[import issue]).index?
nav.with_item(
href: imports_issues_path,
text: issues_text,
selected: active == :issues
)
end
if policy(ImportantNotice).index?
nav.with_item(
href: imports_notices_path,
text: notices_text,
selected: active == :notices
)
end
end
end