Skip to content

Commit

Permalink
feat: add DuplicateButton
Browse files Browse the repository at this point in the history
  • Loading branch information
nomorepanic committed Oct 3, 2024
1 parent 53641a4 commit 7ff9546
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/components/ItemControls/components/DuplicateButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { DeleteOutlined as DeleteIcon } from '@mui/icons-material';
import { ContentCopy as DuplicateIcon } from '@mui/icons-material';
import { Button } from '@mui/material';

interface Props {
onClick: () => void;
}

export const DuplicateButton = ({ onClick }: Props) => {
return (
<Button
size="small"
variant="outlined"
startIcon={<DuplicateIcon color="primary" />}
onClick={onClick}
>
Duplicate
</Button>
);
};

0 comments on commit 7ff9546

Please sign in to comment.