import { Box, createListCollection } from '@chakra-ui/react'; import { noop } from 'es-toolkit'; import React from 'react'; import { Checkbox } from 'toolkit/chakra/checkbox'; import type { SelectOption } from 'toolkit/chakra/select'; import { Select, SelectAsync } from 'toolkit/chakra/select'; import PopoverFilterRadio from 'ui/shared/filters/PopoverFilterRadio'; import IconSvg from 'ui/shared/IconSvg'; import Sort from 'ui/shared/sort/Sort'; import TokenTransferFilter from 'ui/shared/TokenTransfer/TokenTransferFilter'; import { SORT_OPTIONS } from 'ui/txs/useTxsSort'; import { Section, Container, SectionHeader, SamplesStack, Sample, SectionSubHeader } from './parts'; const frameworks = createListCollection({ items: [ { label: 'React.js is the most popular framework', value: 'react', icon: }, { label: 'Vue.js is the second most popular framework', value: 'vue' }, { value: 'angular', label: 'Angular', renderLabel: () =>
Angular is not awesome
}, { label: 'Svelte', value: 'svelte' }, ], }); const txSortingOptions = createListCollection({ items: SORT_OPTIONS, }); const SelectShowcase = () => { const [ hasActiveFilter, setHasActiveFilter ] = React.useState(false); const handleFilterChange = React.useCallback((nextValue: string) => { setHasActiveFilter(nextValue !== txSortingOptions.items[0].value); }, []); return (
Variant