feat: favorite & watch lists
This commit is contained in:
1 parent
960a7a6242
commit
8858e47d38
51 files changed
+561
-290
No files matched your search
@@ -0,0 +1,24 @@
|
||||
'use client';
|
||||
|
||||
import { FC } from 'react';
|
||||
|
||||
import { useMutateShowState } from '@/hooks/useShowState';
|
||||
|
||||
interface Props {
|
||||
show: Show;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const Handlers: FC<Props> = ({ onClick, show }) => {
|
||||
const { mutate } = useMutateShowState(show);
|
||||
|
||||
return (
|
||||
<div
|
||||
onClick={onClick}
|
||||
onDoubleClick={() => mutate({ list: 'favorite', value: true })}
|
||||
className='absolute left-0 top-0 size-full'
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Handlers;
|
||||
Reference in new issue
Block a user