import { html } from '@design.estate/dees-element';
export const demoFunc = () => html`
{
console.log('Login event received:', e.detail);
const loginData = e.detail?.data || e.detail;
if (loginData?.username && loginData?.password) {
alert(`Login attempted with:\nUsername: ${loginData.username}\nPassword: ${loginData.password}`);
// Here you would typically validate credentials and show the slotted content
} else {
console.error('Invalid login data structure:', e.detail);
}
}}
>
Welcome!
This is the slotted content that appears after login.
`;