Files
gitmost/client/src/features/comment/components/comment-actions.tsx
Philipinho 4cb7a56f65 feat: comments
* create comment
* reply to comment thread
* edit comment
* delete comment
* resolve comment
2023-11-09 16:52:34 +00: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;