19 lines
268 B
TypeScript
19 lines
268 B
TypeScript
|
'use client';
|
||
|
|
||
|
type Props = {
|
||
|
onSignOut: () => Promise<void>;
|
||
|
};
|
||
|
|
||
|
const SignOut = ({ onSignOut }: Props) => {
|
||
|
return (
|
||
|
<div className="button"
|
||
|
onClick={() => {
|
||
|
onSignOut();
|
||
|
}}
|
||
|
>
|
||
|
Sign Out
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default SignOut;
|