JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "use-linkified-string.ts"

Full Path: /home/markqprx/iniasli.pro/client/utils/hooks/use-linkified-string.ts
File size: 320 bytes
MIME-type: text/plain
Charset: utf-8

import {useMemo} from 'react';
import linkifyStr from 'linkify-string';

export function useLinkifiedString(text: string | null | undefined) {
  return useMemo(() => {
    if (!text) {
      return text;
    }
    return linkifyStr(text, {
      nl2br: true,
      attributes: {rel: 'nofollow'},
    });
  }, [text]);
}