Skip to main content

Import

You can import and use the hook like this.
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.
projectName
string
Name of the project
message
string
Message field inside send window.
customInfo
Record<string, string>[]
Custom info from the project
log
Log
The selected log. If multiple logs are selected, it will merge the values and return them as one log.
logs
Log[]
The log selection as an array of logs
logsAll
Log[]
All logs in the project
total
Total
A collection of methods to retrieve totals
Props for log and total