mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-23 18:41:36 +01:00
14 lines
396 B
JavaScript
14 lines
396 B
JavaScript
import { ButtonGroup, Button, Flexbox } from 'react-basics';
|
|
|
|
export 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>
|
|
);
|
|
}
|
|
|
|
export default FilterButtons;
|