feat(FE-43): create RowCollapseOptions component

This commit is contained in:
ValdiANS
2025-10-04 12:19:01 +07:00
parent f1a8fda667
commit 34e9e60173
@@ -0,0 +1,27 @@
import { ReactNode } from 'react';
import { Icon } from '@iconify/react';
import Collapse from '@/components/Collapse';
import Button from '@/components/Button';
interface RowCollapseOptionsProps {
children?: ReactNode;
}
const RowCollapseOptions = ({ children }: RowCollapseOptionsProps) => {
return (
<Collapse
title={
<Button>
<Icon icon='material-symbols:more-vert' width={16} height={16} />
</Button>
}
className='w-fit'
titleClassName='p-0! justify-self-end'
>
{children}
</Collapse>
);
};
export default RowCollapseOptions;