/* eslint-disable @typescript-eslint/no-empty-function */
import {
ModalRoot,
ModalContent,
ModalOverlay,
} from '../elements/ModalPrimitives'
import type { KeyboardCommand } from '../../lib/keyboardShortcuts/useKeyboardShortcuts'
import { HStack, VStack, Box } from '../elements/LayoutPrimitives'
import { StyledText } from '../elements/StyledText'
import { Button } from '../elements/Button'
import { CrossIcon } from '../elements/images/CrossIcon'
import { theme } from '../tokens/stitches.config'
import {
navigationCommands,
searchBarCommands,
primaryCommands,
libraryListCommands,
highlightBarKeyboardCommands,
articleKeyboardCommands,
} from '../../lib/keyboardShortcuts/navigationShortcuts'
import { useRouter } from 'next/router'
type KeyboardShortcutListModalProps = {
onOpenChange: (open: boolean) => void
}
export function KeyboardShortcutListModal(
props: KeyboardShortcutListModalProps
): JSX.Element {
const router = useRouter()
return (
Keyboard Shortcuts
{})}
/>
{}).concat(
libraryListCommands(() => {})
)}
/>
{})}
/>
{})}
/>
)
}
type ShortcutListSectionProps = {
title: string
commands: KeyboardCommand[]
}
function ShortcutListSection(props: ShortcutListSectionProps): JSX.Element {
return (
<>
{props.title}
{props.commands.map((command, index) => (
{command.actionDescription}
{command.shortcutKeyDescription}
))}
>
)
}