import * as React from 'react'; import { useClearPinButton } from '../../hooks'; /** @public */ export interface ClearPinButtonProps extends React.ButtonHTMLAttributes {} /** * The `ClearPinButton` is a basic html button with the added ability to signal * the `LayoutContext` that it should display the grid view again. * @remarks * This component works only inside a `LayoutContext`. * * @example * ```tsx * * Back to grid view * * ``` * @public */ export const ClearPinButton: ( props: ClearPinButtonProps & React.RefAttributes, ) => React.ReactNode = /* @__PURE__ */ React.forwardRef( function ClearPinButton(props: ClearPinButtonProps, ref) { const { buttonProps } = useClearPinButton(props); return ( ); }, );