import { RadixCheckbox, Select, SelectOption, Slider, tw } from '@sd/ui'; import { ExplorerDirection, ExplorerOrderByKeys, getExplorerConfigStore, getExplorerStore, useExplorerConfigStore, useExplorerStore } from '~/hooks'; const Heading = tw.div`text-ink-dull text-xs font-semibold`; const Subheading = tw.div`text-ink-dull mb-1 text-xs font-medium`; const sortOptions: Record = { none: 'None', name: 'Name', sizeInBytes: 'Size', dateCreated: 'Date created', dateModified: 'Date modified', dateIndexed: 'Date indexed' }; export default () => { const explorerStore = useExplorerStore(); const explorerConfig = useExplorerConfigStore(); return (
Item size {explorerStore.layoutMode === 'media' ? ( { if (val !== undefined) { getExplorerStore().mediaColumns = 10 - val; } }} /> ) : ( { getExplorerStore().gridItemSize = value[0] || 100; }} defaultValue={[explorerStore.gridItemSize]} max={200} step={10} min={60} /> )}
Sort by
Direction
{explorerStore.layoutMode === 'media' ? ( { if (typeof value === 'boolean') { getExplorerStore().mediaAspectSquare = value; } }} /> ) : ( { if (typeof value === 'boolean') { getExplorerStore().showBytesInGridView = value; } }} /> )}
Double click action
); };