

Custom hook that determines if the component is currently mounted.

## Usage [#usage]

```tsx
import { useIsMounted } from "@tilt-legal/cubitt-components/utilities/hooks";

const isComponentMounted = useIsMounted();
// Use isComponentMounted() to check if the component is currently mounted before performing certain actions.
```

## API [#api]

### Signature [#signature]

```ts
declare function useIsMounted(): () => boolean;
```

### Parameters [#parameters]

This hook takes no arguments.

### Return Value [#return-value]

| Value    | Type               | Description                                                                          |
| -------- | ------------------ | ------------------------------------------------------------------------------------ |
| `return` | `() =&gt; boolean` | A function that returns a boolean value indicating whether the component is mounted. |
