# selectedShape

The selected shape, or null.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { selectedShape } from "@mapcairn/core";
 
function selectedShape(state: DrawState): DrawShape | null;
```

## Parameters

- `state` (`DrawState`)

## Returns

`DrawShape | null`

## See also

- [`DrawState`](https://docs.mapcairn.com/api/core/DrawState.md)
- [`DrawShape`](https://docs.mapcairn.com/api/core/DrawShape.md)

Source: [packages/core/src/draw/reducer.ts:175](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/reducer.ts#L175)
