Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const TabHeaderTemplate = ({name}: {name: $Keys, ...}) => {
const isActive = useStoreMap({
store: _tab,
keys: [name],
fn: (activeTab, [tab]) => activeTab === tab,
})
const {select, title} = tabs[name]
return (
{title}
)
}