export const masterKey = ( val ? ) => { return ( val && val . length >= 8 ) || 'optionsPanel.masterKeyTooShort' ; } ; export const encryptionKey = ( val ? ) => { return ( val && val . length >= 8 ) || 'optionsPanel.encryptionKeyTooShort' ; } ; export const label = ( val ? ) : boolean | string => { return ( val && val . length >= 3 ) || 'optionsPanel.labelTooShort' ; } ; export const login = ( val ? ) : boolean | string => { return ( val && val . length >= 3 ) || 'optionsPanel.loginTooShort' ; } ; export const password = ( val ? ) : boolean | string => { return ( val && val . length >= 3 ) || 'optionsPanel.passwordTooShort' ; } ; export const adminKey = ( val ? ) : boolean | string => { return ( val && val . length >= 20 ) || 'settings.adminKeyTooShort' ; } ;