Files
lti-web-client/src/components/table/RowCollapseOptions.tsx
T
2026-01-20 16:44:42 +07:00

28 lines
647 B
TypeScript

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 variant='ghost' color='none'>
<Icon icon='material-symbols:more-vert' width={16} height={16} />
</Button>
}
className='w-fit min-w-36'
titleClassName='p-0! justify-self-end'
>
{children}
</Collapse>
);
};
export default RowCollapseOptions;