'use client';
import { Modal } from '@/components/shared/Modal';
import { Box } from '@/ui/Box';
import { Text } from '@/ui/Text';
import { Search, Command, ArrowRight } from 'lucide-react';
import { useState, useEffect } from 'react';
interface CommandModalProps {
isOpen: boolean;
onClose: () => void;
}
export function CommandModal({ isOpen, onClose }: CommandModalProps) {
const [query, setQuery] = useState('');
// Mock results
const results = [
{ label: 'Go to Dashboard', shortcut: 'G D' },
{ label: 'Find Driver...', shortcut: 'Cmd F' },
{ label: 'Create League', shortcut: 'C L' },
].filter(r => r.label.toLowerCase().includes(query.toLowerCase()));
return (
}
>
setQuery(e.target.value)}
/>
Suggestions
{results.map((result, i) => (
))}
);
}