ollama / components /Buttons /SidebarActionButton /SidebarActionButton.tsx
rippanteq7's picture
Upload folder using huggingface_hub
bbef364 verified
raw
history blame
406 Bytes
import { MouseEventHandler, ReactElement } from 'react';
interface Props {
handleClick: MouseEventHandler<HTMLButtonElement>;
children: ReactElement;
}
const SidebarActionButton = ({ handleClick, children }: Props) => (
<button
className="min-w-[20px] p-1 text-neutral-400 hover:text-neutral-100"
onClick={handleClick}
>
{children}
</button>
);
export default SidebarActionButton;