fix [#10344](https://github.com/payloadcms/payload/issues/10344) The template was missing defining direction. direction property is necessary because HTML direction will be LTR for RTL languages by default.
Similar to #10331. Since React 19, refs can now be passed directly through props without the need for `React.forwardRef`. This greatly simplifies components types and overall syntax.