File size: 274 Bytes
f27679f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

import { v4 as uuidv4 } from "uuid"

export function formatPromptFileName(id?: string): { id: string; fileName: string } {

  const videoId = typeof id === "string" ? id : uuidv4()
  
  const fileName = `prompt_${videoId}.md`

  return {
    id: videoId,
    fileName
  }
}