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