> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# useSendSettings

> useSendSettings is a convenience hook around getSendSettings() and updateSendSettings().

`useSendSettings(params?): Object`

Use this hook to configure [simulcast layer](https://www.daily.co/blog/simulcast) encodings and control which layers a client publishes. See [`updateSendSettings()`](/reference/daily-js/instance-methods/update-send-settings) for the full options.

## Parameters (optional)

<ParamField body="onSendSettingsUpdated" type="Function">
  Callback for the [`'send-settings-updated'`](/reference/daily-js/events/settings-events#send-settings-updated) event.
</ParamField>

## Return value

Returns an object with the following properties:

<ResponseField name="sendSettings" type="DailySendSettings | null">
  The send settings for the participant. See `daily-js` instance method [`getSendSettings()`](/reference/daily-js/instance-methods/get-send-settings) for an overview.
</ResponseField>

<ResponseField name="updateSendSettings" type="Function">
  Updates send settings, equivalent to calling the `daily-js` [`updateSendSettings()`](/reference/daily-js/instance-methods/update-send-settings) method.
</ResponseField>

## Example

```jsx theme={null}
import { useSendSettings } from '@daily-co/daily-react';

export const SendSettings = () => {
  const { sendSettings } = useSendSettings();
  return (
    <div>
      <strong>Current send settings</strong>
      <pre>{JSON.stringify(sendSettings, null, 2)}</pre>
    </div>
  );
};
```

## See also

<CardGroup>
  <Card title="daily-js methods" icon="code" iconType="solid">
    * [getSendSettings()](/reference/daily-js/instance-methods/get-send-settings)
    * [updateSendSettings()](/reference/daily-js/instance-methods/update-send-settings)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [send-settings-updated](/reference/daily-js/events/settings-events#send-settings-updated)
  </Card>
</CardGroup>
