import { useEffect, useState } from 'react' import { getJanDataFolderPath } from '@janhq/core' export const RelativeImage = ({ id, src, onClick, }: { id: string src: string onClick: () => void }) => { const [path, setPath] = useState('') useEffect(() => { getJanDataFolderPath().then((dataFolderPath) => { setPath(dataFolderPath) }) }, []) return ( ) }