import { getTranslations } from 'next-intl/server';

type FormatTextProps = {
  text: string;
  values?: any;
};

export default async function FormatText({ text, values }: FormatTextProps) {
  const t = await getTranslations();
  return t(text, values);
}
