import type { FC } from "react" import ChevronLeftIcon from "~icons/lucide/chevron-left" import { Button, type ButtonProps } from "../button" import { useSlides } from "./hooks/use-slides" export type PrevSlideButtonProps = ButtonProps & { slidesLength: number } export const PrevSlideButton: FC = ({ slidesLength, "aria-label": ariaLabel = "Previous slide", title = "Previous slide", ...props }) => { const { prev } = useSlides({ length: slidesLength }) return ( ) }