feat(FE-43): create RowDropdownOptions component

This commit is contained in:
ValdiANS
2025-10-04 12:19:15 +07:00
parent 34e9e60173
commit 65e3833cd5
@@ -0,0 +1,33 @@
import { ReactNode } from 'react';
import { Icon } from '@iconify/react';
import Button from '@/components/Button';
import { cn } from '@/lib/helper';
interface RowDropdownOptionsProps {
children?: ReactNode;
isLast2Rows: boolean;
}
const RowDropdownOptions = ({
children,
isLast2Rows,
}: RowDropdownOptionsProps) => {
return (
<div
className={cn('dropdown dropdown-left', {
'dropdown-start': !isLast2Rows,
'dropdown-end': isLast2Rows,
})}
>
<Button tabIndex={0}>
<Icon icon='material-symbols:more-vert' width={16} height={16} />
</Button>
{children}
</div>
);
};
export default RowDropdownOptions;