import { useAppConfig } from '@toptal/picasso-provider' ; export const useTitleCase = ( componentTitleCase ? ) => { const { titleCase : appTitleCase } = useAppConfig ( ) ; return componentTitleCase ?? appTitleCase ; } ;