import { Trans, type TransProps } from "@lingui/react"

import type { MessageDescriptor } from "./types"

export type TranslateProps = Omit<
  TransProps,
  "comment" | "id" | "message" | "values"
> &
  MessageDescriptor

export function Translate(props: TranslateProps) {
  return <Trans {...(props as TransProps)} />
}
