mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
485 B
TypeScript
18 lines
485 B
TypeScript
import React, { JSX } from 'react'
|
|
|
|
export default function DownloadButton({
|
|
onClick,
|
|
}: {
|
|
onClick?: React.MouseEventHandler
|
|
}): JSX.Element {
|
|
return (
|
|
<button
|
|
id="download-button"
|
|
onClick={onClick}
|
|
className="h-12 px-4 bg-linear-to-b from-green-500 to-green-600 text-white rounded-md hover:from-green-500 hover:to-green-700 transition-all duration-200 border border-green-600 shadow-sm hover:shadow-md text-shadow"
|
|
>
|
|
Download
|
|
</button>
|
|
)
|
|
}
|