1
0
mirror of https://github.com/kremalicious/umami.git synced 2025-01-02 02:03:10 +01:00
umami/components/common/FilterButtons.js

12 lines
351 B
JavaScript
Raw Normal View History

2020-10-13 01:31:51 +02:00
import React from 'react';
import ButtonLayout from 'components/layout/ButtonLayout';
import ButtonGroup from './ButtonGroup';
export default function FilterButtons({ buttons, selected, onClick }) {
return (
<ButtonLayout>
<ButtonGroup size="xsmall" items={buttons} selectedItem={selected} onClick={onClick} />
</ButtonLayout>
);
}