Typescript support
This commit is contained in:
parent
354175ff2f
commit
0712a629a9
5 changed files with 40 additions and 7 deletions
|
|
@ -1,6 +1,11 @@
|
|||
import { useState } from 'react';
|
||||
import type { MouseEvent } from "react";
|
||||
|
||||
export function ControlBar({ isGallery, handleClick }) {
|
||||
export interface ControlBarProps {
|
||||
isGallery: boolean;
|
||||
handleClick: React.MouseEventHandler<HTMLButtonElement>;
|
||||
}
|
||||
|
||||
export function ControlBar({ isGallery, handleClick }: ControlBarProps ) {
|
||||
return(
|
||||
<div className="hidden md:flex ml-auto">
|
||||
<button className="hover:bg-[#839b39] bg-[#789031] text-white p-2 rounded-lg mr-20 xl:mr-50 min-w-[130px]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue