Files
docmost-ryan/apps/client/src/features/comment/components/comment-actions.tsx
2024-01-09 18:58:26 +01:00

17 lines
394 B
TypeScript

import { Button, Group } from '@mantine/core';
type CommentActionsProps = {
onSave: () => void;
isLoading?: boolean;
};
function CommentActions({ onSave, isLoading }: CommentActionsProps) {
return (
<Group justify="flex-end" pt={2} wrap="nowrap">
<Button size="compact-sm" loading={isLoading} onClick={onSave}>Save</Button>
</Group>
);
}
export default CommentActions;