interface Props { success?: string; error?: string; } const Message = ({ success, error }: Props) => { return (