ResetButton.tsx 463 B

12345678910111213
  1. import { ArrowUturnDownIcon } from '@heroicons/react/20/solid'
  2. import Button from './Button'
  3. import type { ButtonProps } from './Button'
  4. import type { PropsWithChildren } from 'react'
  5. export default function ResetButton({ className = '', ...props }: PropsWithChildren<ButtonProps>) {
  6. return (
  7. <Button className={`reset ${className}`} {...props}>
  8. <ArrowUturnDownIcon />
  9. {props.children ? props.children : <span>Reset</span>}
  10. </Button>
  11. )
  12. }