mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-25 02:36:20 +01:00
12 lines
373 B
JavaScript
12 lines
373 B
JavaScript
import { ButtonGroup, Button, Flexbox } from 'react-basics';
|
|
|
|
export default function FilterButtons({ items, selectedKey, onSelect }) {
|
|
return (
|
|
<Flexbox justifyContent="center">
|
|
<ButtonGroup items={items} selectedKey={selectedKey} onSelect={onSelect}>
|
|
{({ key, label }) => <Button key={key}>{label}</Button>}
|
|
</ButtonGroup>
|
|
</Flexbox>
|
|
);
|
|
}
|