2022-06-08 19:23:10 +00:00
|
|
|
import clsx from 'clsx'
|
|
|
|
|
|
|
|
export function TextButton(props: {
|
|
|
|
onClick: () => void
|
|
|
|
children: React.ReactNode
|
|
|
|
className?: string
|
|
|
|
}) {
|
|
|
|
const { onClick, children, className } = props
|
|
|
|
|
|
|
|
return (
|
2022-07-26 22:24:16 +00:00
|
|
|
<span
|
2022-06-08 19:23:10 +00:00
|
|
|
className={clsx(
|
|
|
|
className,
|
|
|
|
'cursor-pointer gap-2 hover:underline hover:decoration-indigo-400 hover:decoration-2 focus:underline focus:decoration-indigo-400 focus:decoration-2'
|
|
|
|
)}
|
|
|
|
tabIndex={0}
|
|
|
|
onClick={onClick}
|
|
|
|
>
|
|
|
|
{children}
|
2022-07-26 22:24:16 +00:00
|
|
|
</span>
|
2022-06-08 19:23:10 +00:00
|
|
|
)
|
|
|
|
}
|