trillium/web/src/index.tsx

36 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-05-22 08:35:43 +00:00
/*
What if I never make it back from this damn panic attack?
GTB sliding in a Hellcat bumping From First to Last
When I die they're gonna make a park bench saying "This where he sat"
Me and Yung Sherman going rehab, this shit is very sad
Me and Yung Sherm in Venice Beach, man, this shit is very rad
Me and Yung Sherman at the gym working out and getting tanned
I never will see you again and I hope you understand
I'm crashing down some like a wave over castles made of sand
*/
import { render } from 'preact';
import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
export function combineTailwind(first, second) {
if(!second) return first;
const secondSplit = second.split(" ")
let classes = [];
const secondIds = secondSplit.map(z => z.split("-")[0]);
for(const defaultClass of first.split(" ")) {
if(!secondIds.includes(defaultClass.split("-")[0])) {
classes.push(defaultClass);
}
}
return classes.concat(secondSplit).join(" ")
}
import './index.css'
import App from './components/App';
render(
<GoogleReCaptchaProvider reCaptchaKey='6Lc8vOApAAAAAHAZlkLXSGe4Qe2J3gLMqRtodETV'><App /></GoogleReCaptchaProvider>, document.getElementById('app'));