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 ? (
(vedRef ? vedRef(e) : undefined)} >
{children ? children : null}
) : null; } export { Feilmelding };