utils.ts 280 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 import { categoryKeys, tagKeys, } from './constants' export const getValidTagKeys = (tags: string[]) => { return tags.filter(tag => tagKeys.includes(tag)) } export const getValidCategoryKeys = (category?: string) => { return categoryKeys.find(key => key === category) }