diff --git a/knip.jsonc b/knip.jsonc index 1a61fa857..dc89df6ca 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -28,7 +28,6 @@ "src/chat/preferences.functions.ts", "src/chat/server/semantic-history.ts", "src/chat/skill-identifiers.ts", - "src/components/BlogAuthorFilter.tsx", "src/components/BottomCTA.tsx", "src/components/DocFeedbackContext.tsx", "src/components/FrameworkIconTabs.tsx", diff --git a/src/components/BlogAuthorFilter.tsx b/src/components/BlogAuthorFilter.tsx deleted file mode 100644 index 28341357d..000000000 --- a/src/components/BlogAuthorFilter.tsx +++ /dev/null @@ -1,133 +0,0 @@ -import { CheckIcon, CaretUpDownIcon } from '@phosphor-icons/react' -import { twMerge } from 'tailwind-merge' -import { - Dropdown, - DropdownContent, - DropdownItem, - DropdownSeparator, - DropdownTrigger, -} from '~/components/Dropdown' -import { findMaintainerByAuthorName } from '~/utils/authors' -import authorFallbackAvatar from '~/images/author-fallback.svg' - -function getAuthorAvatar(name: string): string { - return findMaintainerByAuthorName(name)?.avatar ?? authorFallbackAvatar -} - -type BlogAuthorFilterProps = { - authors: string[] - selected: string | undefined - onSelect: (author: string | undefined) => void - className?: string -} - -export function BlogAuthorFilter({ - authors, - selected, - onSelect, - className, -}: BlogAuthorFilterProps) { - // Ignore URL values that don't correspond to a real author in the list. - const activeAuthor = - selected && authors.includes(selected) ? selected : undefined - - return ( -