// ~/composables/helpers/getFilePath.ts
import { appConst } from "~/constants/app"

export default function getFilePath(
  file: string | null | undefined,
  path: string | null
): string {
  const config = useRuntimeConfig()
  // No file
  // console.log(`${config.public.baseUrl}/${path}/${file}`);
  
  // Normal document file
  return `${config.public.baseUrl}/images/${path}/${file}`
}
