Atributos HTML como props

interface Props extends React.HTMLAttributes<HTMLElement> {
	text: string
}
 
const RefreshButton = ({text, ...rest}: Props) => {
	return (
		<div {...rest}>
		<Button onClick={handleRefresh} {...rest}>{text}</Button>
		</div>
	);
};