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

# Use Daytalog

> Get data from the project with the useDaytalog hook

## Import

You can import and use the hook like this.

```typescript theme={null}
import { Html, Head, Body, Img } from '@react-email/components';
import { useDaytalog } from 'daytalog'

const Email = () => {
// Use the props you need  
const { projectName, log } = useDaytalog()

console.table(log.clips)

  return (
    <Html>
      <Head></Head>
      <Body>
        <p>{projectName}</p>
      </Body>
    </Html>
  )
}
export default Email
```

## Properties

These properties are available on useDaytalog.

<ResponseField name="projectName" type="string">
  Name of the project
</ResponseField>

<ResponseField name="message" type="string">
  Message field inside send window.
</ResponseField>

<ResponseField name="customInfo" type="Record<string, string>[]">Custom info from the project</ResponseField>
<ResponseField name="log" type="Log">The selected log. If multiple logs are selected, it will merge the values and return them as one log.</ResponseField>
<ResponseField name="logs" type="Log[]">The log selection as an array of logs</ResponseField>
<ResponseField name="logsAll" type="Log[]">All logs in the project</ResponseField>
<ResponseField name="total" type="Total">A collection of methods to retrieve totals</ResponseField>

Props for [log](/schemas/daytalog/log) and [total](/schemas/daytalog/total)
