import React from 'react'; import { Formatering } from './Formatering'; interface Props { tekst?: string; vedRef?: (event: any) => void; children?: React.ReactNode; } function Feilmelding(props: Props) { const { tekst, vedRef, children } = props; return tekst ? (