import { Grid, Group } from '@mantine/core'; import { RiSearchLine, RiMenuFill, RiArrowLeftSLine, RiArrowRightSLine } from 'react-icons/ri'; import { useNavigate } from 'react-router'; import styled from 'styled-components'; import { Button, DropdownMenu, TextInput } from '/@/renderer/components'; import { AppMenu } from '/@/renderer/features/titlebar/components/app-menu'; import { useContainerQuery } from '/@/renderer/hooks'; import { useCommandPalette } from '/@/renderer/store'; const ActionsContainer = styled(Grid)` display: flex; align-items: center; height: 70px; padding: 0 1rem; -webkit-app-region: drag; input { -webkit-app-region: no-drag; } `; export const ActionBar = () => { const cq = useContainerQuery({ sm: 300 }); const navigate = useNavigate(); const { open } = useCommandPalette(); return ( } placeholder="Search" size="md" onClick={open} onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { open(); } }} /> ); };