diff --git a/src/renderer/components/modals/AboutSettings.tsx b/src/renderer/components/modals/AboutSettings.tsx new file mode 100644 index 0000000..21eb054 --- /dev/null +++ b/src/renderer/components/modals/AboutSettings.tsx @@ -0,0 +1,38 @@ +import { useEffect, useState } from 'react'; +import { ipc } from '@/lib/ipc'; + +export function AboutSettings() { + const [version, setVersion] = useState('…'); + + useEffect(() => { + ipc.app.getVersion().then((r) => { + if (r.ok && typeof r.data === 'string') setVersion(r.data); + }); + }, []); + + return ( +
Version {version}
+ ++ { e.preventDefault(); ipc.app.openExternal('https://concreteinfo.co.in'); }} + > + ConcreteInfo + +
+© ConcreteInfo. Licensed under MIT.
+